Update src/runtime/internal/dev.ts

Co-authored-by: Ignatius Bagus <ignatius.mbs@gmail.com>
pull/6770/head
Simon H 4 years ago committed by GitHub
parent 472c5a1467
commit 1f4190c048
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -280,8 +280,11 @@ export class SvelteComponentTyped<
* <svelte:component this={componentOfCertainSubType} needsThisProp="hello" /> * <svelte:component this={componentOfCertainSubType} needsThisProp="hello" />
* ``` * ```
*/ */
export type ComponentType<Component extends SvelteComponentTyped = SvelteComponentTyped<any, any, any>> = export type ComponentType<Component extends SvelteComponentTyped = SvelteComponentTyped> = new (
new (options: ComponentConstructorOptions<Component extends SvelteComponentTyped<infer Props, any, any> ? Props : any>) => Component; options: ComponentConstructorOptions<
Component extends SvelteComponentTyped<infer Props> ? Props : Record<string, any>
>
) => Component;
/** /**
* Convenience type to get the props the given component expects. Example: * Convenience type to get the props the given component expects. Example:

Loading…
Cancel
Save