chore: update links that previously pointed to preview site (#14001)

pull/13949/head
Ben McCann 1 week ago committed by GitHub
parent c93a645b68
commit 07219f1cbd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
"svelte": patch
---
fix: update links that previously pointed to preview site

@ -24,7 +24,7 @@ declare module '*.svelte' {
* let count = $state(0); * let count = $state(0);
* ``` * ```
* *
* https://svelte-5-preview.vercel.app/docs/runes#$state * https://svelte.dev/docs/svelte/$state
* *
* @param initial The initial value * @param initial The initial value
*/ */
@ -120,7 +120,7 @@ declare namespace $state {
* </button> * </button>
* ``` * ```
* *
* https://svelte-5-preview.vercel.app/docs/runes#$state-raw * https://svelte.dev/docs/svelte/$state#$state.raw
* *
* @param initial The initial value * @param initial The initial value
*/ */
@ -141,7 +141,7 @@ declare namespace $state {
* </script> * </script>
* ``` * ```
* *
* https://svelte-5-preview.vercel.app/docs/runes#$state.snapshot * https://svelte.dev/docs/svelte/$state#$state.snapshot
* *
* @param state The value to snapshot * @param state The value to snapshot
*/ */
@ -178,7 +178,7 @@ declare namespace $state {
* let double = $derived(count * 2); * let double = $derived(count * 2);
* ``` * ```
* *
* https://svelte-5-preview.vercel.app/docs/runes#$derived * https://svelte.dev/docs/svelte/$derived
* *
* @param expression The derived state expression * @param expression The derived state expression
*/ */
@ -200,7 +200,7 @@ declare namespace $derived {
* }); * });
* ``` * ```
* *
* https://svelte-5-preview.vercel.app/docs/runes#$derived-by * https://svelte.dev/docs/svelte/$derived#$derived.by
*/ */
export function by<T>(fn: () => T): T; export function by<T>(fn: () => T): T;
@ -239,7 +239,7 @@ declare namespace $derived {
* *
* Does not run during server side rendering. * Does not run during server side rendering.
* *
* https://svelte-5-preview.vercel.app/docs/runes#$effect * https://svelte.dev/docs/svelte/$effect
* @param fn The function to execute * @param fn The function to execute
*/ */
declare function $effect(fn: () => void | (() => void)): void; declare function $effect(fn: () => void | (() => void)): void;
@ -258,7 +258,7 @@ declare namespace $effect {
* *
* Does not run during server side rendering. * Does not run during server side rendering.
* *
* https://svelte-5-preview.vercel.app/docs/runes#$effect-pre * https://svelte.dev/docs/svelte/$effect#$effect.pre
* @param fn The function to execute * @param fn The function to execute
*/ */
export function pre(fn: () => void | (() => void)): void; export function pre(fn: () => void | (() => void)): void;
@ -281,7 +281,7 @@ declare namespace $effect {
* *
* This allows you to (for example) add things like subscriptions without causing memory leaks, by putting them in child effects. * This allows you to (for example) add things like subscriptions without causing memory leaks, by putting them in child effects.
* *
* https://svelte-5-preview.vercel.app/docs/runes#$effect-tracking * https://svelte.dev/docs/svelte/$effect#$effect.tracking
*/ */
export function tracking(): boolean; export function tracking(): boolean;
@ -309,7 +309,7 @@ declare namespace $effect {
* <button onclick={() => cleanup()}>cleanup</button> * <button onclick={() => cleanup()}>cleanup</button>
* ``` * ```
* *
* https://svelte-5-preview.vercel.app/docs/runes#$effect-root * https://svelte.dev/docs/svelte/$effect#$effect.root
*/ */
export function root(fn: () => void | (() => void)): () => void; export function root(fn: () => void | (() => void)): () => void;
@ -342,7 +342,7 @@ declare namespace $effect {
* let { optionalProp = 42, requiredProp, bindableProp = $bindable() }: { optionalProp?: number; requiredProps: string; bindableProp: boolean } = $props(); * let { optionalProp = 42, requiredProp, bindableProp = $bindable() }: { optionalProp?: number; requiredProps: string; bindableProp: boolean } = $props();
* ``` * ```
* *
* https://svelte-5-preview.vercel.app/docs/runes#$props * https://svelte.dev/docs/svelte/$props
*/ */
declare function $props(): any; declare function $props(): any;
@ -353,7 +353,7 @@ declare function $props(): any;
* let { propName = $bindable() }: { propName: boolean } = $props(); * let { propName = $bindable() }: { propName: boolean } = $props();
* ``` * ```
* *
* https://svelte-5-preview.vercel.app/docs/runes#$bindable * https://svelte.dev/docs/svelte/$bindable
*/ */
declare function $bindable<T>(fallback?: T): T; declare function $bindable<T>(fallback?: T): T;
@ -373,7 +373,7 @@ declare function $bindable<T>(fallback?: T): T;
* $inspect(x, y).with(() => { debugger; }); * $inspect(x, y).with(() => { debugger; });
* ``` * ```
* *
* https://svelte-5-preview.vercel.app/docs/runes#$inspect * https://svelte.dev/docs/svelte/$inspect
*/ */
declare function $inspect<T extends any[]>( declare function $inspect<T extends any[]>(
...values: T ...values: T
@ -396,6 +396,6 @@ declare function $inspect<T extends any[]>(
* *
* Only available inside custom element components, and only on the client-side. * Only available inside custom element components, and only on the client-side.
* *
* https://svelte-5-preview.vercel.app/docs/runes#$host * https://svelte.dev/docs/svelte/$host
*/ */
declare function $host<El extends HTMLElement = HTMLElement>(): El; declare function $host<El extends HTMLElement = HTMLElement>(): El;

@ -344,7 +344,7 @@ export function server_component(analysis, options) {
b.block([ b.block([
b.throw_error( b.throw_error(
`Component.render(...) is no longer valid in Svelte 5. ` + `Component.render(...) is no longer valid in Svelte 5. ` +
'See https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes for more information' 'See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes for more information'
) )
]) ])
) )

@ -82,7 +82,7 @@ function create_custom_event(type, detail, { bubbles = false, cancelable = false
* }>(); * }>();
* ``` * ```
* *
* @deprecated Use callback props and/or the `$host()` rune instead see https://svelte-5-preview.vercel.app/docs/deprecations#createeventdispatcher * @deprecated Use callback props and/or the `$host()` rune instead see https://svelte.dev/docs/svelte/v5-migration-guide#Event-changes-Component-events
* @template {Record<string, any>} [EventMap = any] * @template {Record<string, any>} [EventMap = any]
* @returns {EventDispatcher<EventMap>} * @returns {EventDispatcher<EventMap>}
*/ */
@ -121,7 +121,7 @@ export function createEventDispatcher() {
* *
* In runes mode use `$effect.pre` instead. * In runes mode use `$effect.pre` instead.
* *
* @deprecated Use `$effect.pre` instead see https://svelte-5-preview.vercel.app/docs/deprecations#beforeupdate-and-afterupdate * @deprecated Use `$effect.pre` instead see https://svelte.dev/docs/svelte/$effect#$effect.pre
* @param {() => void} fn * @param {() => void} fn
* @returns {void} * @returns {void}
*/ */
@ -144,7 +144,7 @@ export function beforeUpdate(fn) {
* *
* In runes mode use `$effect` instead. * In runes mode use `$effect` instead.
* *
* @deprecated Use `$effect` instead see https://svelte-5-preview.vercel.app/docs/deprecations#beforeupdate-and-afterupdate * @deprecated Use `$effect` instead see https://svelte.dev/docs/svelte/$effect
* @param {() => void} fn * @param {() => void} fn
* @returns {void} * @returns {void}
*/ */

@ -5,7 +5,7 @@ import './ambient.js';
/** /**
* @deprecated In Svelte 4, components are classes. In Svelte 5, they are functions. * @deprecated In Svelte 4, components are classes. In Svelte 5, they are functions.
* Use `mount` instead to instantiate components. * Use `mount` instead to instantiate components.
* See [breaking changes](https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes) * See [migration guide](https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes)
* for more info. * for more info.
*/ */
export interface ComponentConstructorOptions< export interface ComponentConstructorOptions<
@ -39,7 +39,7 @@ type Properties<Props, Slots> = Props &
* This was the base class for Svelte components in Svelte 4. Svelte 5+ components * This was the base class for Svelte components in Svelte 4. Svelte 5+ components
* are completely different under the hood. For typing, use `Component` instead. * are completely different under the hood. For typing, use `Component` instead.
* To instantiate components, use `mount` instead`. * To instantiate components, use `mount` instead`.
* See [breaking changes documentation](https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes) for more info. * See [migration guide](https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes) for more info.
*/ */
export class SvelteComponent< export class SvelteComponent<
Props extends Record<string, any> = Record<string, any>, Props extends Record<string, any> = Record<string, any>,
@ -53,7 +53,7 @@ export class SvelteComponent<
/** /**
* @deprecated This constructor only exists when using the `asClassComponent` compatibility helper, which * @deprecated This constructor only exists when using the `asClassComponent` compatibility helper, which
* is a stop-gap solution. Migrate towards using `mount` instead. See * is a stop-gap solution. Migrate towards using `mount` instead. See
* https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes for more info. * https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes for more info.
*/ */
constructor(options: ComponentConstructorOptions<Properties<Props, Slots>>); constructor(options: ComponentConstructorOptions<Properties<Props, Slots>>);
/** /**
@ -83,14 +83,14 @@ export class SvelteComponent<
/** /**
* @deprecated This method only exists when using one of the legacy compatibility helpers, which * @deprecated This method only exists when using one of the legacy compatibility helpers, which
* is a stop-gap solution. See https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes * is a stop-gap solution. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes
* for more info. * for more info.
*/ */
$destroy(): void; $destroy(): void;
/** /**
* @deprecated This method only exists when using one of the legacy compatibility helpers, which * @deprecated This method only exists when using one of the legacy compatibility helpers, which
* is a stop-gap solution. See https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes * is a stop-gap solution. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes
* for more info. * for more info.
*/ */
$on<K extends Extract<keyof Events, string>>( $on<K extends Extract<keyof Events, string>>(
@ -100,7 +100,7 @@ export class SvelteComponent<
/** /**
* @deprecated This method only exists when using one of the legacy compatibility helpers, which * @deprecated This method only exists when using one of the legacy compatibility helpers, which
* is a stop-gap solution. See https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes * is a stop-gap solution. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes
* for more info. * for more info.
*/ */
$set(props: Partial<Props>): void; $set(props: Partial<Props>): void;
@ -153,13 +153,13 @@ export interface Component<
): { ): {
/** /**
* @deprecated This method only exists when using one of the legacy compatibility helpers, which * @deprecated This method only exists when using one of the legacy compatibility helpers, which
* is a stop-gap solution. See https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes * is a stop-gap solution. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes
* for more info. * for more info.
*/ */
$on?(type: string, callback: (e: any) => void): () => void; $on?(type: string, callback: (e: any) => void): () => void;
/** /**
* @deprecated This method only exists when using one of the legacy compatibility helpers, which * @deprecated This method only exists when using one of the legacy compatibility helpers, which
* is a stop-gap solution. See https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes * is a stop-gap solution. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes
* for more info. * for more info.
*/ */
$set?(props: Partial<Props>): void; $set?(props: Partial<Props>): void;
@ -171,7 +171,7 @@ export interface Component<
} }
/** /**
* @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. * @deprecated Use `Component` instead. See [migration guide](https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes) for more information.
*/ */
export class SvelteComponentTyped< export class SvelteComponentTyped<
Props extends Record<string, any> = Record<string, any>, Props extends Record<string, any> = Record<string, any>,
@ -278,7 +278,7 @@ declare const SnippetReturn: unique symbol;
* ``` * ```
* You can only call a snippet through the `{@render ...}` tag. * You can only call a snippet through the `{@render ...}` tag.
* *
* https://svelte-5-preview.vercel.app/docs/snippets * https://svelte.dev/docs/svelte/snippet
* *
* @template Parameters the parameters that the snippet expects (if any) as a tuple. * @template Parameters the parameters that the snippet expects (if any) as a tuple.
*/ */

@ -832,8 +832,6 @@ export function invalidate_inner_signals(fn) {
/** /**
* Use `untrack` to prevent something from being treated as an `$effect`/`$derived` dependency. * Use `untrack` to prevent something from being treated as an `$effect`/`$derived` dependency.
*
* https://svelte-5-preview.vercel.app/docs/functions#untrack
* @template T * @template T
* @param {() => T} fn * @param {() => T} fn
* @returns {T} * @returns {T}

@ -2,7 +2,7 @@ declare module 'svelte' {
/** /**
* @deprecated In Svelte 4, components are classes. In Svelte 5, they are functions. * @deprecated In Svelte 4, components are classes. In Svelte 5, they are functions.
* Use `mount` instead to instantiate components. * Use `mount` instead to instantiate components.
* See [breaking changes](https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes) * See [migration guide](https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes)
* for more info. * for more info.
*/ */
export interface ComponentConstructorOptions< export interface ComponentConstructorOptions<
@ -36,7 +36,7 @@ declare module 'svelte' {
* This was the base class for Svelte components in Svelte 4. Svelte 5+ components * This was the base class for Svelte components in Svelte 4. Svelte 5+ components
* are completely different under the hood. For typing, use `Component` instead. * are completely different under the hood. For typing, use `Component` instead.
* To instantiate components, use `mount` instead`. * To instantiate components, use `mount` instead`.
* See [breaking changes documentation](https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes) for more info. * See [migration guide](https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes) for more info.
*/ */
export class SvelteComponent< export class SvelteComponent<
Props extends Record<string, any> = Record<string, any>, Props extends Record<string, any> = Record<string, any>,
@ -50,7 +50,7 @@ declare module 'svelte' {
/** /**
* @deprecated This constructor only exists when using the `asClassComponent` compatibility helper, which * @deprecated This constructor only exists when using the `asClassComponent` compatibility helper, which
* is a stop-gap solution. Migrate towards using `mount` instead. See * is a stop-gap solution. Migrate towards using `mount` instead. See
* https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes for more info. * https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes for more info.
*/ */
constructor(options: ComponentConstructorOptions<Properties<Props, Slots>>); constructor(options: ComponentConstructorOptions<Properties<Props, Slots>>);
/** /**
@ -80,14 +80,14 @@ declare module 'svelte' {
/** /**
* @deprecated This method only exists when using one of the legacy compatibility helpers, which * @deprecated This method only exists when using one of the legacy compatibility helpers, which
* is a stop-gap solution. See https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes * is a stop-gap solution. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes
* for more info. * for more info.
*/ */
$destroy(): void; $destroy(): void;
/** /**
* @deprecated This method only exists when using one of the legacy compatibility helpers, which * @deprecated This method only exists when using one of the legacy compatibility helpers, which
* is a stop-gap solution. See https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes * is a stop-gap solution. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes
* for more info. * for more info.
*/ */
$on<K extends Extract<keyof Events, string>>( $on<K extends Extract<keyof Events, string>>(
@ -97,7 +97,7 @@ declare module 'svelte' {
/** /**
* @deprecated This method only exists when using one of the legacy compatibility helpers, which * @deprecated This method only exists when using one of the legacy compatibility helpers, which
* is a stop-gap solution. See https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes * is a stop-gap solution. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes
* for more info. * for more info.
*/ */
$set(props: Partial<Props>): void; $set(props: Partial<Props>): void;
@ -150,13 +150,13 @@ declare module 'svelte' {
): { ): {
/** /**
* @deprecated This method only exists when using one of the legacy compatibility helpers, which * @deprecated This method only exists when using one of the legacy compatibility helpers, which
* is a stop-gap solution. See https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes * is a stop-gap solution. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes
* for more info. * for more info.
*/ */
$on?(type: string, callback: (e: any) => void): () => void; $on?(type: string, callback: (e: any) => void): () => void;
/** /**
* @deprecated This method only exists when using one of the legacy compatibility helpers, which * @deprecated This method only exists when using one of the legacy compatibility helpers, which
* is a stop-gap solution. See https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes * is a stop-gap solution. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes
* for more info. * for more info.
*/ */
$set?(props: Partial<Props>): void; $set?(props: Partial<Props>): void;
@ -168,7 +168,7 @@ declare module 'svelte' {
} }
/** /**
* @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. * @deprecated Use `Component` instead. See [migration guide](https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes) for more information.
*/ */
export class SvelteComponentTyped< export class SvelteComponentTyped<
Props extends Record<string, any> = Record<string, any>, Props extends Record<string, any> = Record<string, any>,
@ -275,7 +275,7 @@ declare module 'svelte' {
* ``` * ```
* You can only call a snippet through the `{@render ...}` tag. * You can only call a snippet through the `{@render ...}` tag.
* *
* https://svelte-5-preview.vercel.app/docs/snippets * https://svelte.dev/docs/svelte/snippet
* *
* @template Parameters the parameters that the snippet expects (if any) as a tuple. * @template Parameters the parameters that the snippet expects (if any) as a tuple.
*/ */
@ -385,7 +385,7 @@ declare module 'svelte' {
* }>(); * }>();
* ``` * ```
* *
* @deprecated Use callback props and/or the `$host()` rune instead see https://svelte-5-preview.vercel.app/docs/deprecations#createeventdispatcher * @deprecated Use callback props and/or the `$host()` rune instead see https://svelte.dev/docs/svelte/v5-migration-guide#Event-changes-Component-events
* */ * */
export function createEventDispatcher<EventMap extends Record<string, any> = any>(): EventDispatcher<EventMap>; export function createEventDispatcher<EventMap extends Record<string, any> = any>(): EventDispatcher<EventMap>;
/** /**
@ -395,7 +395,7 @@ declare module 'svelte' {
* *
* In runes mode use `$effect.pre` instead. * In runes mode use `$effect.pre` instead.
* *
* @deprecated Use `$effect.pre` instead see https://svelte-5-preview.vercel.app/docs/deprecations#beforeupdate-and-afterupdate * @deprecated Use `$effect.pre` instead see https://svelte.dev/docs/svelte/$effect#$effect.pre
* */ * */
export function beforeUpdate(fn: () => void): void; export function beforeUpdate(fn: () => void): void;
/** /**
@ -405,7 +405,7 @@ declare module 'svelte' {
* *
* In runes mode use `$effect` instead. * In runes mode use `$effect` instead.
* *
* @deprecated Use `$effect` instead see https://svelte-5-preview.vercel.app/docs/deprecations#beforeupdate-and-afterupdate * @deprecated Use `$effect` instead see https://svelte.dev/docs/svelte/$effect
* */ * */
export function afterUpdate(fn: () => void): void; export function afterUpdate(fn: () => void): void;
/** /**
@ -456,8 +456,6 @@ declare module 'svelte' {
export function tick(): Promise<void>; export function tick(): Promise<void>;
/** /**
* Use `untrack` to prevent something from being treated as an `$effect`/`$derived` dependency. * Use `untrack` to prevent something from being treated as an `$effect`/`$derived` dependency.
*
* https://svelte-5-preview.vercel.app/docs/functions#untrack
* */ * */
export function untrack<T>(fn: () => T): T; export function untrack<T>(fn: () => T): T;
/** /**
@ -2322,7 +2320,7 @@ declare module 'svelte/types/compiler/interfaces' {
* let count = $state(0); * let count = $state(0);
* ``` * ```
* *
* https://svelte-5-preview.vercel.app/docs/runes#$state * https://svelte.dev/docs/svelte/$state
* *
* @param initial The initial value * @param initial The initial value
*/ */
@ -2418,7 +2416,7 @@ declare namespace $state {
* </button> * </button>
* ``` * ```
* *
* https://svelte-5-preview.vercel.app/docs/runes#$state-raw * https://svelte.dev/docs/svelte/$state#$state.raw
* *
* @param initial The initial value * @param initial The initial value
*/ */
@ -2439,7 +2437,7 @@ declare namespace $state {
* </script> * </script>
* ``` * ```
* *
* https://svelte-5-preview.vercel.app/docs/runes#$state.snapshot * https://svelte.dev/docs/svelte/$state#$state.snapshot
* *
* @param state The value to snapshot * @param state The value to snapshot
*/ */
@ -2476,7 +2474,7 @@ declare namespace $state {
* let double = $derived(count * 2); * let double = $derived(count * 2);
* ``` * ```
* *
* https://svelte-5-preview.vercel.app/docs/runes#$derived * https://svelte.dev/docs/svelte/$derived
* *
* @param expression The derived state expression * @param expression The derived state expression
*/ */
@ -2498,7 +2496,7 @@ declare namespace $derived {
* }); * });
* ``` * ```
* *
* https://svelte-5-preview.vercel.app/docs/runes#$derived-by * https://svelte.dev/docs/svelte/$derived#$derived.by
*/ */
export function by<T>(fn: () => T): T; export function by<T>(fn: () => T): T;
@ -2537,7 +2535,7 @@ declare namespace $derived {
* *
* Does not run during server side rendering. * Does not run during server side rendering.
* *
* https://svelte-5-preview.vercel.app/docs/runes#$effect * https://svelte.dev/docs/svelte/$effect
* @param fn The function to execute * @param fn The function to execute
*/ */
declare function $effect(fn: () => void | (() => void)): void; declare function $effect(fn: () => void | (() => void)): void;
@ -2556,7 +2554,7 @@ declare namespace $effect {
* *
* Does not run during server side rendering. * Does not run during server side rendering.
* *
* https://svelte-5-preview.vercel.app/docs/runes#$effect-pre * https://svelte.dev/docs/svelte/$effect#$effect.pre
* @param fn The function to execute * @param fn The function to execute
*/ */
export function pre(fn: () => void | (() => void)): void; export function pre(fn: () => void | (() => void)): void;
@ -2579,7 +2577,7 @@ declare namespace $effect {
* *
* This allows you to (for example) add things like subscriptions without causing memory leaks, by putting them in child effects. * This allows you to (for example) add things like subscriptions without causing memory leaks, by putting them in child effects.
* *
* https://svelte-5-preview.vercel.app/docs/runes#$effect-tracking * https://svelte.dev/docs/svelte/$effect#$effect.tracking
*/ */
export function tracking(): boolean; export function tracking(): boolean;
@ -2607,7 +2605,7 @@ declare namespace $effect {
* <button onclick={() => cleanup()}>cleanup</button> * <button onclick={() => cleanup()}>cleanup</button>
* ``` * ```
* *
* https://svelte-5-preview.vercel.app/docs/runes#$effect-root * https://svelte.dev/docs/svelte/$effect#$effect.root
*/ */
export function root(fn: () => void | (() => void)): () => void; export function root(fn: () => void | (() => void)): () => void;
@ -2640,7 +2638,7 @@ declare namespace $effect {
* let { optionalProp = 42, requiredProp, bindableProp = $bindable() }: { optionalProp?: number; requiredProps: string; bindableProp: boolean } = $props(); * let { optionalProp = 42, requiredProp, bindableProp = $bindable() }: { optionalProp?: number; requiredProps: string; bindableProp: boolean } = $props();
* ``` * ```
* *
* https://svelte-5-preview.vercel.app/docs/runes#$props * https://svelte.dev/docs/svelte/$props
*/ */
declare function $props(): any; declare function $props(): any;
@ -2651,7 +2649,7 @@ declare function $props(): any;
* let { propName = $bindable() }: { propName: boolean } = $props(); * let { propName = $bindable() }: { propName: boolean } = $props();
* ``` * ```
* *
* https://svelte-5-preview.vercel.app/docs/runes#$bindable * https://svelte.dev/docs/svelte/$bindable
*/ */
declare function $bindable<T>(fallback?: T): T; declare function $bindable<T>(fallback?: T): T;
@ -2671,7 +2669,7 @@ declare function $bindable<T>(fallback?: T): T;
* $inspect(x, y).with(() => { debugger; }); * $inspect(x, y).with(() => { debugger; });
* ``` * ```
* *
* https://svelte-5-preview.vercel.app/docs/runes#$inspect * https://svelte.dev/docs/svelte/$inspect
*/ */
declare function $inspect<T extends any[]>( declare function $inspect<T extends any[]>(
...values: T ...values: T
@ -2694,7 +2692,7 @@ declare function $inspect<T extends any[]>(
* *
* Only available inside custom element components, and only on the client-side. * Only available inside custom element components, and only on the client-side.
* *
* https://svelte-5-preview.vercel.app/docs/runes#$host * https://svelte.dev/docs/svelte/$host
*/ */
declare function $host<El extends HTMLElement = HTMLElement>(): El; declare function $host<El extends HTMLElement = HTMLElement>(): El;

Loading…
Cancel
Save