Skip to content

Commit b9ac9fb

Browse files
committed
regenerate types
1 parent fa85e9e commit b9ac9fb

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

packages/svelte/types/index.d.ts

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ declare module 'svelte' {
22
/**
33
* @deprecated In Svelte 4, components are classes. In Svelte 5, they are functions.
44
* 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)
66
* for more info.
77
*/
88
export interface ComponentConstructorOptions<
@@ -36,7 +36,7 @@ declare module 'svelte' {
3636
* This was the base class for Svelte components in Svelte 4. Svelte 5+ components
3737
* are completely different under the hood. For typing, use `Component` instead.
3838
* 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.
4040
*/
4141
export class SvelteComponent<
4242
Props extends Record<string, any> = Record<string, any>,
@@ -50,7 +50,7 @@ declare module 'svelte' {
5050
/**
5151
* @deprecated This constructor only exists when using the `asClassComponent` compatibility helper, which
5252
* 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.
5454
*/
5555
constructor(options: ComponentConstructorOptions<Properties<Props, Slots>>);
5656
/**
@@ -80,14 +80,14 @@ declare module 'svelte' {
8080

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

8888
/**
8989
* @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
9191
* for more info.
9292
*/
9393
$on<K extends Extract<keyof Events, string>>(
@@ -97,7 +97,7 @@ declare module 'svelte' {
9797

9898
/**
9999
* @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
101101
* for more info.
102102
*/
103103
$set(props: Partial<Props>): void;
@@ -150,13 +150,13 @@ declare module 'svelte' {
150150
): {
151151
/**
152152
* @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
154154
* for more info.
155155
*/
156156
$on?(type: string, callback: (e: any) => void): () => void;
157157
/**
158158
* @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
160160
* for more info.
161161
*/
162162
$set?(props: Partial<Props>): void;
@@ -168,7 +168,7 @@ declare module 'svelte' {
168168
}
169169

170170
/**
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.
172172
*/
173173
export class SvelteComponentTyped<
174174
Props extends Record<string, any> = Record<string, any>,
@@ -275,7 +275,7 @@ declare module 'svelte' {
275275
* ```
276276
* You can only call a snippet through the `{@render ...}` tag.
277277
*
278-
* https://svelte-5-preview.vercel.app/docs/snippets
278+
* https://svelte.dev/docs/svelte/snippet
279279
*
280280
* @template Parameters the parameters that the snippet expects (if any) as a tuple.
281281
*/
@@ -456,8 +456,6 @@ declare module 'svelte' {
456456
export function tick(): Promise<void>;
457457
/**
458458
* Use `untrack` to prevent something from being treated as an `$effect`/`$derived` dependency.
459-
*
460-
* https://svelte-5-preview.vercel.app/docs/functions#untrack
461459
* */
462460
export function untrack<T>(fn: () => T): T;
463461
/**

0 commit comments

Comments
 (0)