Skip to content

Commit 23df27f

Browse files
committed
chore: update types for $state.raw
1 parent 3353faf commit 23df27f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/svelte/src/ambient.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ declare namespace $state {
117117
*
118118
* @param initial The initial value
119119
*/
120+
export function raw<T>(initial?: T, options?: import('svelte').StateOptions): T;
120121
export function raw<T>(initial: T): T;
121122
export function raw<T>(): T | undefined;
122123
/**

packages/svelte/types/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2776,6 +2776,7 @@ declare namespace $state {
27762776
*
27772777
* @param initial The initial value
27782778
*/
2779+
export function raw<T>(initial?: T, options?: import('svelte').StateOptions): T;
27792780
export function raw<T>(initial: T): T;
27802781
export function raw<T>(): T | undefined;
27812782
/**

0 commit comments

Comments
 (0)