Skip to content

Commit f3681d8

Browse files
committed
regenerate types
1 parent cb2772c commit f3681d8

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/svelte/types/index.d.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2477,14 +2477,9 @@ declare namespace $derived {
24772477
* });
24782478
* ```
24792479
*
2480-
* `$derived.fn` passes the previous derived value as a single argument to the derived function. This can be useful for when
2481-
* you might want to compare the latest derived value with the previous derived value. Furthermore, you might want to pluck out
2482-
* specific properties of derived state to use in the new derived state given a certain condition – which can be useful when dealing
2483-
* with more complex state machines.
2484-
*
24852480
* https://svelte-5-preview.vercel.app/docs/runes#$derived-fn
24862481
*/
2487-
export function fn<T>(fn: (prev: T) => T): void;
2482+
export function fn<T>(fn: () => T): void;
24882483
}
24892484

24902485
/**

0 commit comments

Comments
 (0)