UNPKG

carbon-react

Version:

A library of reusable React components for easily building user interfaces.

5 lines (4 loc) 207 B
import { DebouncedFunc } from "lodash"; type Callback = (...args: any[]) => void; declare const useThrottle: <T extends Callback>(callback: T, delay: number) => DebouncedFunc<T>; export default useThrottle;