UNPKG

ahooks-v2

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