UNPKG

354 BTypeScriptView Raw
1/**
2 * Creates a debounced function that will invoke the input function after the
3 * specified delay.
4 *
5 * @param fn a function that will be debounced
6 * @param delay The milliseconds delay before invoking the function
7 */
8export default function useDebouncedCallback<TCallback extends (...args: any[]) => any>(fn: TCallback, delay: number): TCallback;