You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The two utility types `ComponentEvents` and `ComponentType` are also deprecated. `ComponentEvents` is obsolete because events are defined as callback props now, and `ComponentType` is obsolete because the new `Component` type is the component type already (e.g.`ComponentType<SvelteComponent<{ prop: string }>>`==`Component<{ prop: string }>`).
611
+
The two utility types `ComponentEvents` and `ComponentType` are also deprecated. `ComponentEvents` is obsolete because events are defined as callback props now, and `ComponentType` is obsolete because the new `Component` type is the component type already (i.e.`ComponentType<SvelteComponent<{ prop: string }>>`is equivalent to`Component<{ prop: string }>`).
633
612
634
613
### bind:this changes
635
614
@@ -658,7 +637,7 @@ This is no longer true in Svelte 5:
658
637
<Thing />
659
638
<svelte:component this={Thing} />
660
639
```
661
-
While migrating, keep in mind that your user-defined component's name should be capitalized (`Thing`) to distinguish it from a normal HTML element and avoid incorrect types.
640
+
While migrating, keep in mind that your component's name should be capitalized (`Thing`) to distinguish it from elements, unless using dot notation.
0 commit comments