@@ -4,7 +4,7 @@ import './ambient.js';
4
4
5
5
/**
6
6
* @deprecated In Svelte 4, components are classes. In Svelte 5, they are functions.
7
- * Use `mount` or `createRoot` instead to instantiate components.
7
+ * Use `mount` instead to instantiate components.
8
8
* See [breaking changes](https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes)
9
9
* for more info.
10
10
*/
@@ -36,7 +36,7 @@ type Properties<Props, Slots> = Props &
36
36
/**
37
37
* This was the base class for Svelte components in Svelte 4. Svelte 5+ components
38
38
* are completely different under the hood. For typing, use `Component` instead.
39
- * To instantiate components, use `mount` or `createRoot `.
39
+ * To instantiate components, use `mount` instead `.
40
40
* See [breaking changes documentation](https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes) for more info.
41
41
*/
42
42
export class SvelteComponent <
@@ -50,7 +50,7 @@ export class SvelteComponent<
50
50
[ prop : string ] : any ;
51
51
/**
52
52
* @deprecated This constructor only exists when using the `asClassComponent` compatibility helper, which
53
- * is a stop-gap solution. Migrate towards using `mount` or `createRoot` instead. See
53
+ * is a stop-gap solution. Migrate towards using `mount` instead. See
54
54
* https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes for more info.
55
55
*/
56
56
constructor ( options : ComponentConstructorOptions < Properties < Props , Slots > > ) ;
0 commit comments