UNPKG

@taro-hooks/ahooks

Version:
9 lines (8 loc) 268 B
import type { DebounceOptions } from '../useDebounce/debounceOptions'; type noop = (...args: any) => any; declare function useDebounceFn<T extends noop>(fn: T, options?: DebounceOptions): { run: T; cancel: any; flush: any; }; export default useDebounceFn;