Type Alias WritableFn<T, Args, R>

WritableFn: Writable<T> & (...args: Args) => R

Combines a writable Svelte store with a callable function. This type allows a writable store to also act as a function enabling flexible reactive behavior.

Type Parameters

  • T

    The type of the value stored in the writable store.

  • Args extends unknown[]

    The tuple of argument types accepted by the function.

  • R

    The return type of the function.