|
|
|
@ -50,7 +50,7 @@ declare module 'svelte' {
|
|
|
|
|
/**
|
|
|
|
|
* @deprecated This constructor only exists when using the `asClassComponent` compatibility helper, which
|
|
|
|
|
* is a stop-gap solution. Migrate towards using `mount` instead. See
|
|
|
|
|
* https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes for more info.
|
|
|
|
|
* [migration guide](https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes) for more info.
|
|
|
|
|
*/
|
|
|
|
|
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
|
|
|
|
|
* is a stop-gap solution. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes
|
|
|
|
|
* is a stop-gap solution. See [migration guide](https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes)
|
|
|
|
|
* for more info.
|
|
|
|
|
*/
|
|
|
|
|
$destroy(): void;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @deprecated This method only exists when using one of the legacy compatibility helpers, which
|
|
|
|
|
* is a stop-gap solution. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes
|
|
|
|
|
* is a stop-gap solution. See [migration guide](https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes)
|
|
|
|
|
* for more info.
|
|
|
|
|
*/
|
|
|
|
|
$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
|
|
|
|
|
* is a stop-gap solution. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes
|
|
|
|
|
* is a stop-gap solution. See [migration guide](https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes)
|
|
|
|
|
* for more info.
|
|
|
|
|
*/
|
|
|
|
|
$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
|
|
|
|
|
* is a stop-gap solution. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes
|
|
|
|
|
* is a stop-gap solution. See [migration guide](https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes)
|
|
|
|
|
* for more info.
|
|
|
|
|
*/
|
|
|
|
|
$on?(type: string, callback: (e: any) => void): () => void;
|
|
|
|
|
/**
|
|
|
|
|
* @deprecated This method only exists when using one of the legacy compatibility helpers, which
|
|
|
|
|
* is a stop-gap solution. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes
|
|
|
|
|
* is a stop-gap solution. See [migration guide](https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes)
|
|
|
|
|
* for more info.
|
|
|
|
|
*/
|
|
|
|
|
$set?(props: Partial<Props>): void;
|
|
|
|
@ -385,7 +385,7 @@ declare module 'svelte' {
|
|
|
|
|
* }>();
|
|
|
|
|
* ```
|
|
|
|
|
*
|
|
|
|
|
* @deprecated Use callback props and/or the `$host()` rune instead — see https://svelte.dev/docs/svelte/v5-migration-guide#Event-changes-Component-events
|
|
|
|
|
* @deprecated Use callback props and/or the `$host()` rune instead — see [migration guide](https://svelte.dev/docs/svelte/v5-migration-guide#Event-changes-Component-events)
|
|
|
|
|
* */
|
|
|
|
|
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.
|
|
|
|
|
*
|
|
|
|
|
* @deprecated Use `$effect.pre` instead — see https://svelte.dev/docs/svelte/$effect#$effect.pre
|
|
|
|
|
* @deprecated Use [`$effect.pre`](https://svelte.dev/docs/svelte/$effect#$effect.pre) instead
|
|
|
|
|
* */
|
|
|
|
|
export function beforeUpdate(fn: () => void): void;
|
|
|
|
|
/**
|
|
|
|
@ -405,7 +405,7 @@ declare module 'svelte' {
|
|
|
|
|
*
|
|
|
|
|
* In runes mode use `$effect` instead.
|
|
|
|
|
*
|
|
|
|
|
* @deprecated Use `$effect` instead — see https://svelte.dev/docs/svelte/$effect
|
|
|
|
|
* @deprecated Use [`$effect`](https://svelte.dev/docs/svelte/$effect) instead
|
|
|
|
|
* */
|
|
|
|
|
export function afterUpdate(fn: () => void): void;
|
|
|
|
|
/**
|
|
|
|
|