UNPKG

@sv-use/core

Version:

A collection of Svelte 5 utilities.

10 lines (9 loc) 372 B
/** * A state that automatically resets to the default value after a delay. * @param defaultValue The default value of the state (can be an object). * @param delay The delay in milliseconds. * @see https://svelte-librarian.github.io/sv-use/docs/core/auto-reset-state */ export declare function autoResetState<T>(defaultValue: T, delay?: number): { current: T; };