Interface DebouncedFunction<T>
interface DebouncedFunction<T> {
pending: boolean;
clear(): void;
flush(): void;
(...args: T): void;
}
pending: boolean;
clear(): void;
flush(): void;
(...args: T): void;
}
Type Parameters
- Debounced
Function (...args): void Parameters
Rest...args: T
Returns void
A debounced function that will be delayed by a given
waittime in milliseconds. If the method is called again before the timeout expires, the previous call will be aborted.