UNPKG

@taro-hooks/ahooks

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