UNPKG

@sv-use/core

Version:

A collection of Svelte 5 utilities.

15 lines (14 loc) 494 B
type DebouncedStateOptions = { /** The delay in milliseconds before updating the state. */ delay?: number; }; /** * A reactive state that updates its value after a delay. * @param initial The initial value of the state. * @param options Additional options to customize the behavior. * @see https://svelte-librarian.github.io/sv-use/docs/core/debounced-state */ export declare function debouncedState<T>(initial: T, options?: DebouncedStateOptions): { current: T; }; export {};