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

9 lines
354 B
TypeScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
/**
* 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;