UNPKG

@sv-use/core

Version:

A collection of Svelte 5 utilities.

18 lines (17 loc) 512 B
type DebounceOptions = { /** * The delay in milliseconds before updating the state. * @default 1000 */ delay?: number; }; /** * Debounces the update of the value after a delay. * @param initial The reactive value as a getter. * @param options Additional options to customize the behavior. * @see https://svelte-librarian.github.io/sv-use/docs/core/debounce */ export declare function debounce<T>(value: () => T, options?: DebounceOptions): { current: T | undefined; }; export {};