File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -2477,14 +2477,9 @@ declare namespace $derived {
2477
2477
* });
2478
2478
* ```
2479
2479
*
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
- *
2485
2480
* https://svelte-5-preview.vercel.app/docs/runes#$derived-fn
2486
2481
*/
2487
- export function fn < T > ( fn : ( prev : T ) => T ) : void ;
2482
+ export function fn < T > ( fn : ( ) => T ) : void ;
2488
2483
}
2489
2484
2490
2485
/**
You can’t perform that action at this time.
0 commit comments