UNPKG

@figliolia/react-hooks

Version:

A small collection of simple React Hooks you're probably rewriting on a regular basis

4 lines (3 loc) 205 B
import { Throttler } from "../Generics/Throttler"; import type { Callback } from "../Types"; export declare const useThrottler: <T extends Callback<any[], any>>(callback: T, wait: number) => Throttler<T>;