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 60829378c2
commit 34cb5d2c5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -276,8 +276,8 @@ export class SvelteComponentTyped<
* const componentOfCertainSubType: ComponentType<SvelteComponentTyped<{ needsThisProp: string }>> = someLogic() ? Component1 : Component2; * const componentOfCertainSubType: ComponentType<SvelteComponentTyped<{ needsThisProp: string }>> = someLogic() ? Component1 : Component2;
* </script> * </script>
* *
* <svelte:element this={component} /> * <svelte:component this={component} />
* <svelte:element this={componentOfCertainSubType} needsThisProp="hello" /> * <svelte:component this={componentOfCertainSubType} needsThisProp="hello" />
* ``` * ```
*/ */
export type ComponentType<T extends SvelteComponentTyped = SvelteComponentTyped<any, any, any>> = export type ComponentType<T extends SvelteComponentTyped = SvelteComponentTyped<any, any, any>> =

Loading…
Cancel
Save