@@ -2,7 +2,7 @@ declare module 'svelte' {
2
2
/**
3
3
* @deprecated In Svelte 4, components are classes. In Svelte 5, they are functions.
4
4
* Use `mount` instead to instantiate components.
5
- * See [breaking changes ](https://svelte-5-preview.vercel.app /docs/breaking-changes#components -are-no-longer-classes)
5
+ * See [migration guide ](https://svelte.dev /docs/svelte/v5-migration-guide#Components -are-no-longer-classes)
6
6
* for more info.
7
7
*/
8
8
export interface ComponentConstructorOptions <
@@ -36,7 +36,7 @@ declare module 'svelte' {
36
36
* This was the base class for Svelte components in Svelte 4. Svelte 5+ components
37
37
* are completely different under the hood. For typing, use `Component` instead.
38
38
* To instantiate components, use `mount` instead`.
39
- * See [breaking changes documentation ](https://svelte-5-preview.vercel.app /docs/breaking-changes#components -are-no-longer-classes) for more info.
39
+ * See [migration guide ](https://svelte.dev /docs/svelte/v5-migration-guide#Components -are-no-longer-classes) for more info.
40
40
*/
41
41
export class SvelteComponent <
42
42
Props extends Record < string , any > = Record < string , any > ,
@@ -50,7 +50,7 @@ declare module 'svelte' {
50
50
/**
51
51
* @deprecated This constructor only exists when using the `asClassComponent` compatibility helper, which
52
52
* is a stop-gap solution. Migrate towards using `mount` instead. See
53
- * https://svelte-5-preview.vercel.app /docs/breaking-changes#components -are-no-longer-classes for more info.
53
+ * https://svelte.dev /docs/svelte/v5-migration-guide#Components -are-no-longer-classes for more info.
54
54
*/
55
55
constructor ( options : ComponentConstructorOptions < Properties < Props , Slots > > ) ;
56
56
/**
@@ -80,14 +80,14 @@ declare module 'svelte' {
80
80
81
81
/**
82
82
* @deprecated This method only exists when using one of the legacy compatibility helpers, which
83
- * is a stop-gap solution. See https://svelte-5-preview.vercel.app /docs/breaking-changes#components -are-no-longer-classes
83
+ * is a stop-gap solution. See https://svelte.dev /docs/svelte/v5-migration-guide#Components -are-no-longer-classes
84
84
* for more info.
85
85
*/
86
86
$destroy ( ) : void ;
87
87
88
88
/**
89
89
* @deprecated This method only exists when using one of the legacy compatibility helpers, which
90
- * is a stop-gap solution. See https://svelte-5-preview.vercel.app /docs/breaking-changes#components -are-no-longer-classes
90
+ * is a stop-gap solution. See https://svelte.dev /docs/svelte/v5-migration-guide#Components -are-no-longer-classes
91
91
* for more info.
92
92
*/
93
93
$on < K extends Extract < keyof Events , string > > (
@@ -97,7 +97,7 @@ declare module 'svelte' {
97
97
98
98
/**
99
99
* @deprecated This method only exists when using one of the legacy compatibility helpers, which
100
- * is a stop-gap solution. See https://svelte-5-preview.vercel.app /docs/breaking-changes#components -are-no-longer-classes
100
+ * is a stop-gap solution. See https://svelte.dev /docs/svelte/v5-migration-guide#Components -are-no-longer-classes
101
101
* for more info.
102
102
*/
103
103
$set ( props : Partial < Props > ) : void ;
@@ -150,13 +150,13 @@ declare module 'svelte' {
150
150
) : {
151
151
/**
152
152
* @deprecated This method only exists when using one of the legacy compatibility helpers, which
153
- * is a stop-gap solution. See https://svelte-5-preview.vercel.app /docs/breaking-changes#components -are-no-longer-classes
153
+ * is a stop-gap solution. See https://svelte.dev /docs/svelte/v5-migration-guide#Components -are-no-longer-classes
154
154
* for more info.
155
155
*/
156
156
$on ?( type : string , callback : ( e : any ) => void ) : ( ) => void ;
157
157
/**
158
158
* @deprecated This method only exists when using one of the legacy compatibility helpers, which
159
- * is a stop-gap solution. See https://svelte-5-preview.vercel.app /docs/breaking-changes#components -are-no-longer-classes
159
+ * is a stop-gap solution. See https://svelte.dev /docs/svelte/v5-migration-guide#Components -are-no-longer-classes
160
160
* for more info.
161
161
*/
162
162
$set ?( props : Partial < Props > ) : void ;
@@ -168,7 +168,7 @@ declare module 'svelte' {
168
168
}
169
169
170
170
/**
171
- * @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.
171
+ * @deprecated Use `Component` instead. See [migration guide ](https://svelte.dev /docs/svelte/v5-migration-guide#Components -are-no-longer-classes) for more information.
172
172
*/
173
173
export class SvelteComponentTyped <
174
174
Props extends Record < string , any > = Record < string , any > ,
@@ -275,7 +275,7 @@ declare module 'svelte' {
275
275
* ```
276
276
* You can only call a snippet through the `{@render ...}` tag.
277
277
*
278
- * https://svelte-5-preview.vercel.app /docs/snippets
278
+ * https://svelte.dev /docs/svelte/snippet
279
279
*
280
280
* @template Parameters the parameters that the snippet expects (if any) as a tuple.
281
281
*/
@@ -456,8 +456,6 @@ declare module 'svelte' {
456
456
export function tick ( ) : Promise < void > ;
457
457
/**
458
458
* Use `untrack` to prevent something from being treated as an `$effect`/`$derived` dependency.
459
- *
460
- * https://svelte-5-preview.vercel.app/docs/functions#untrack
461
459
* */
462
460
export function untrack < T > ( fn : ( ) => T ) : T ;
463
461
/**
0 commit comments