fix: adjust `$inspect.with` type

compile-return-ast
Simon Holthausen 9 months ago
parent ba13c3d206
commit c7cb90c91c

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: adjust `$inspect.with` type

@ -178,4 +178,4 @@ declare function $props<T>(): T;
*/
declare function $inspect<T extends any[]>(
...values: T
): { with: (type: 'init' | 'update', ...values: T) => void };
): { with: (fn: (type: 'init' | 'update', ...values: T) => void) => void };

@ -2565,6 +2565,6 @@ declare function $props<T>(): T;
*/
declare function $inspect<T extends any[]>(
...values: T
): { with: (type: 'init' | 'update', ...values: T) => void };
): { with: (fn: (type: 'init' | 'update', ...values: T) => void) => void };
//# sourceMappingURL=index.d.ts.map
Loading…
Cancel
Save