Skip to content

Commit fa85e9e

Browse files
committed
the rest
1 parent 8977142 commit fa85e9e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

packages/svelte/src/index.d.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import './ambient.js';
55
/**
66
* @deprecated In Svelte 4, components are classes. In Svelte 5, they are functions.
77
* 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)
99
* for more info.
1010
*/
1111
export interface ComponentConstructorOptions<
@@ -39,7 +39,7 @@ type Properties<Props, Slots> = Props &
3939
* This was the base class for Svelte components in Svelte 4. Svelte 5+ components
4040
* are completely different under the hood. For typing, use `Component` instead.
4141
* 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.
4343
*/
4444
export class SvelteComponent<
4545
Props extends Record<string, any> = Record<string, any>,
@@ -53,7 +53,7 @@ export class SvelteComponent<
5353
/**
5454
* @deprecated This constructor only exists when using the `asClassComponent` compatibility helper, which
5555
* 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.
5757
*/
5858
constructor(options: ComponentConstructorOptions<Properties<Props, Slots>>);
5959
/**
@@ -83,14 +83,14 @@ export class SvelteComponent<
8383

8484
/**
8585
* @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
8787
* for more info.
8888
*/
8989
$destroy(): void;
9090

9191
/**
9292
* @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
9494
* for more info.
9595
*/
9696
$on<K extends Extract<keyof Events, string>>(
@@ -100,7 +100,7 @@ export class SvelteComponent<
100100

101101
/**
102102
* @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
104104
* for more info.
105105
*/
106106
$set(props: Partial<Props>): void;
@@ -153,13 +153,13 @@ export interface Component<
153153
): {
154154
/**
155155
* @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
157157
* for more info.
158158
*/
159159
$on?(type: string, callback: (e: any) => void): () => void;
160160
/**
161161
* @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
163163
* for more info.
164164
*/
165165
$set?(props: Partial<Props>): void;
@@ -171,7 +171,7 @@ export interface Component<
171171
}
172172

173173
/**
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.
175175
*/
176176
export class SvelteComponentTyped<
177177
Props extends Record<string, any> = Record<string, any>,
@@ -278,7 +278,7 @@ declare const SnippetReturn: unique symbol;
278278
* ```
279279
* You can only call a snippet through the `{@render ...}` tag.
280280
*
281-
* https://svelte-5-preview.vercel.app/docs/snippets
281+
* https://svelte.dev/docs/svelte/snippet
282282
*
283283
* @template Parameters the parameters that the snippet expects (if any) as a tuple.
284284
*/

0 commit comments

Comments
 (0)