|
|
|
@ -2679,7 +2679,11 @@ declare module 'svelte/types/compiler/interfaces' {
|
|
|
|
|
*
|
|
|
|
|
* @param initial The initial value
|
|
|
|
|
*/
|
|
|
|
|
declare function $state<T>(initial?: T, options?: import('svelte').StateOptions): T;
|
|
|
|
|
declare function $state<T>(
|
|
|
|
|
initial: undefined,
|
|
|
|
|
options?: import('svelte').StateOptions
|
|
|
|
|
): T | undefined;
|
|
|
|
|
declare function $state<T>(initial: T, options?: import('svelte').StateOptions): T;
|
|
|
|
|
declare function $state<T>(initial: T): T;
|
|
|
|
|
declare function $state<T>(): T | undefined;
|
|
|
|
|
|
|
|
|
@ -2776,6 +2780,10 @@ declare namespace $state {
|
|
|
|
|
*
|
|
|
|
|
* @param initial The initial value
|
|
|
|
|
*/
|
|
|
|
|
export function raw<T>(
|
|
|
|
|
initial: undefined,
|
|
|
|
|
options?: import('svelte').StateOptions
|
|
|
|
|
): T | undefined;
|
|
|
|
|
export function raw<T>(initial?: T, options?: import('svelte').StateOptions): T;
|
|
|
|
|
export function raw<T>(initial: T): T;
|
|
|
|
|
export function raw<T>(): T | undefined;
|
|
|
|
|