chore: fix types

derived-by-current-value
paoloricciuti 2 months ago
parent 9595bc676b
commit 090f06a340

@ -2494,7 +2494,7 @@ declare namespace $derived {
*
* https://svelte-5-preview.vercel.app/docs/runes#$derived-by
*/
export function by<T>(fn: () => T): T;
export function by<T>(fn: (current: T | null) => T): T;
// prevent intellisense from being unhelpful
/** @deprecated */

Loading…
Cancel
Save