Type Alias MinimalWritableFn<T, Args, R>

MinimalWritableFn: MinimalWritable<T> & (...args: Args) => R

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

Type Parameters

  • T

    The type of value stored in the minimal writable store.

  • Args extends unknown[]

    The tuple of argument types accepted by the function.

  • R = void

    The return type of the function.