GoScrobble/web/node_modules/@restart/hooks/cjs/useDebouncedCallback.d.ts

9 lines
354 B
TypeScript

/**
* Creates a debounced function that will invoke the input function after the
* specified delay.
*
* @param fn a function that will be debounced
* @param delay The milliseconds delay before invoking the function
*/
export default function useDebouncedCallback<TCallback extends (...args: any[]) => any>(fn: TCallback, delay: number): TCallback;