Relative Content

Tag Archive for typescripttypesannotationssvelte

Is it possible to annotate the type of a Svelte component?

I have several Svelte components, for example: Melon.svelte, Cherry.svelte, Phone.svelte. In a parent component, FruitBox.svelte, using <svelte:component>, I want to be able to dynamically render only fruit components, but not others.

Is it possible to type-annotate Svelte components?

I have several Svelte components, for example: Melon.svelte, Cherry.svelte, Phone.svelte. In a parent component, FruitBox.svelte, using <svelte:component>, I want to be able to dynamically render only fruit components, but not others.