simple-lazy-debounce
Version:
Lazy delay support debounce function
9 lines (7 loc) • 347 B
TypeScript
interface DebounceOptions {
defaultDelay?: number;
maxDelay?: number;
latencyIncrement?: number;
}
declare const SimpleLazyDebounce: <T extends unknown[]>(callback: (..._args: T) => void, { defaultDelay, maxDelay, latencyIncrement, }?: DebounceOptions) => ((..._args: T) => void);
export { type DebounceOptions, SimpleLazyDebounce };