autoResetState
Category States
A state that automatically resets to the default value after a delay.
Demo
This is the default message
Usage
Type definitions
/**
* 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/states/auto-reset-state
*/
export declare function autoResetState<T>(defaultValue: T, delay?: number): {
current: T;
};