Convenience type to get the props the given component expects. Example:
<script lang="ts"> import type { ComponentProps } from 'svelte'; import Component from './Component.svelte'; const props: ComponentProps<Component> = { foo: 'bar' }; // Errors if these aren't the correct props</script> Copy
<script lang="ts"> import type { ComponentProps } from 'svelte'; import Component from './Component.svelte'; const props: ComponentProps<Component> = { foo: 'bar' }; // Errors if these aren't the correct props</script>
Convenience type to get the props the given component expects. Example: