UNPKG

@gdjiami/hooks

Version:

react hooks for mygzb.com

9 lines (8 loc) 715 B
declare function useThrottle(fn: () => any, ms?: number): void; declare function useThrottle<A>(fn: (a: A) => any, ms: number, args: [A]): void; declare function useThrottle<A, B>(fn: (a: A, b: B) => any, ms: number, args: [A, B]): void; declare function useThrottle<A, B, C>(fn: (a: A, b: B, c: C) => any, ms: number, args: [A, B, C]): void; declare function useThrottle<A, B, C, D>(fn: (a: A, b: B, c: C, d: D) => any, ms: number, args: [A, B, C, D]): void; declare function useThrottle<A, B, C, D, E>(fn: (a: A, b: B, c: C, d: D, e: E) => any, ms: number, args: [A, B, C, D, E]): void; declare function useThrottle(fn: (...args: any[]) => any, ms: number, args: any[]): void; export default useThrottle;