fix: add proper typings for `$derived.call`

fixes #10330
pull/10333/head
Simon Holthausen 1 year ago
parent 77b4c4be6c
commit 6145be5c69

@ -0,0 +1,5 @@
---
"svelte": patch
---
fix: add proper typings for `$derived.call`

@ -77,7 +77,7 @@ declare namespace $derived {
* *
* https://svelte-5-preview.vercel.app/docs/runes#$derived-call * https://svelte-5-preview.vercel.app/docs/runes#$derived-call
*/ */
export function fn<T>(fn: () => T): void; export function call<T>(fn: () => T): void;
} }
/** /**

@ -2485,7 +2485,7 @@ declare namespace $derived {
* *
* https://svelte-5-preview.vercel.app/docs/runes#$derived-call * https://svelte-5-preview.vercel.app/docs/runes#$derived-call
*/ */
export function fn<T>(fn: () => T): void; export function call<T>(fn: () => T): void;
} }
/** /**

Loading…
Cancel
Save