Interface DebouncedFunc<T>
Type parameters
T: (...args: any[]) => any
Callable
- DebouncedFunc(...args: Parameters<T>): undefined | ReturnType<T>
Parameters
Rest ...args: Parameters<T>
Returns undefined | ReturnType<T>
Methods
cancel
Returns void
flush
- flush(): undefined | ReturnType<T>
Returns undefined | ReturnType<T>
Call the original function, but applying the debounce rules.
If the debounced function can be run immediately, this calls it and returns its return value.
Otherwise, it returns the return value of the last invocation, or undefined if the debounced function was not invoked yet.