@@ -5,7 +5,7 @@ import './ambient.js';
5
5
/**
6
6
* @deprecated In Svelte 4, components are classes. In Svelte 5, they are functions.
7
7
* Use `mount` instead to instantiate components.
8
- * See [breaking changes ](https://svelte-5-preview.vercel.app /docs/breaking-changes#components -are-no-longer-classes)
8
+ * See [migration guide ](https://svelte.dev /docs/svelte/v5-migration-guide#Components -are-no-longer-classes)
9
9
* for more info.
10
10
*/
11
11
export interface ComponentConstructorOptions <
@@ -39,7 +39,7 @@ type Properties<Props, Slots> = Props &
39
39
* This was the base class for Svelte components in Svelte 4. Svelte 5+ components
40
40
* are completely different under the hood. For typing, use `Component` instead.
41
41
* To instantiate components, use `mount` instead`.
42
- * See [breaking changes documentation ](https://svelte-5-preview.vercel.app /docs/breaking-changes#components -are-no-longer-classes) for more info.
42
+ * See [migration guide ](https://svelte.dev /docs/svelte/v5-migration-guide#Components -are-no-longer-classes) for more info.
43
43
*/
44
44
export class SvelteComponent <
45
45
Props extends Record < string , any > = Record < string , any > ,
@@ -53,7 +53,7 @@ export class SvelteComponent<
53
53
/**
54
54
* @deprecated This constructor only exists when using the `asClassComponent` compatibility helper, which
55
55
* is a stop-gap solution. Migrate towards using `mount` instead. See
56
- * https://svelte-5-preview.vercel.app /docs/breaking-changes#components -are-no-longer-classes for more info.
56
+ * https://svelte.dev /docs/svelte/v5-migration-guide#Components -are-no-longer-classes for more info.
57
57
*/
58
58
constructor ( options : ComponentConstructorOptions < Properties < Props , Slots > > ) ;
59
59
/**
@@ -83,14 +83,14 @@ export class SvelteComponent<
83
83
84
84
/**
85
85
* @deprecated This method only exists when using one of the legacy compatibility helpers, which
86
- * is a stop-gap solution. See https://svelte-5-preview.vercel.app /docs/breaking-changes#components -are-no-longer-classes
86
+ * is a stop-gap solution. See https://svelte.dev /docs/svelte/v5-migration-guide#Components -are-no-longer-classes
87
87
* for more info.
88
88
*/
89
89
$destroy ( ) : void ;
90
90
91
91
/**
92
92
* @deprecated This method only exists when using one of the legacy compatibility helpers, which
93
- * is a stop-gap solution. See https://svelte-5-preview.vercel.app /docs/breaking-changes#components -are-no-longer-classes
93
+ * is a stop-gap solution. See https://svelte.dev /docs/svelte/v5-migration-guide#Components -are-no-longer-classes
94
94
* for more info.
95
95
*/
96
96
$on < K extends Extract < keyof Events , string > > (
@@ -100,7 +100,7 @@ export class SvelteComponent<
100
100
101
101
/**
102
102
* @deprecated This method only exists when using one of the legacy compatibility helpers, which
103
- * is a stop-gap solution. See https://svelte-5-preview.vercel.app /docs/breaking-changes#components -are-no-longer-classes
103
+ * is a stop-gap solution. See https://svelte.dev /docs/svelte/v5-migration-guide#Components -are-no-longer-classes
104
104
* for more info.
105
105
*/
106
106
$set ( props : Partial < Props > ) : void ;
@@ -153,13 +153,13 @@ export interface Component<
153
153
) : {
154
154
/**
155
155
* @deprecated This method only exists when using one of the legacy compatibility helpers, which
156
- * is a stop-gap solution. See https://svelte-5-preview.vercel.app /docs/breaking-changes#components -are-no-longer-classes
156
+ * is a stop-gap solution. See https://svelte.dev /docs/svelte/v5-migration-guide#Components -are-no-longer-classes
157
157
* for more info.
158
158
*/
159
159
$on ?( type : string , callback : ( e : any ) => void ) : ( ) => void ;
160
160
/**
161
161
* @deprecated This method only exists when using one of the legacy compatibility helpers, which
162
- * is a stop-gap solution. See https://svelte-5-preview.vercel.app /docs/breaking-changes#components -are-no-longer-classes
162
+ * is a stop-gap solution. See https://svelte.dev /docs/svelte/v5-migration-guide#Components -are-no-longer-classes
163
163
* for more info.
164
164
*/
165
165
$set ?( props : Partial < Props > ) : void ;
@@ -171,7 +171,7 @@ export interface Component<
171
171
}
172
172
173
173
/**
174
- * @deprecated Use `Component` instead. See [breaking changes documentation ](https://svelte-5-preview.vercel.app /docs/breaking-changes#components -are-no-longer-classes) for more information.
174
+ * @deprecated Use `Component` instead. See [migration guide ](https://svelte.dev /docs/svelte/v5-migration-guide#Components -are-no-longer-classes) for more information.
175
175
*/
176
176
export class SvelteComponentTyped <
177
177
Props extends Record < string , any > = Record < string , any > ,
@@ -278,7 +278,7 @@ declare const SnippetReturn: unique symbol;
278
278
* ```
279
279
* You can only call a snippet through the `{@render ...}` tag.
280
280
*
281
- * https://svelte-5-preview.vercel.app /docs/snippets
281
+ * https://svelte.dev /docs/svelte/snippet
282
282
*
283
283
* @template Parameters the parameters that the snippet expects (if any) as a tuple.
284
284
*/
0 commit comments