UNPKG

react-hooks-and-com

Version:

一个现代化的 React 自定义 Hooks 库,提供 20+ 个实用的自定义 Hooks。使用 TypeScript 和 Tailwind CSS 构建,完全类型安全。

12 lines 396 B
export interface UseThrottleOptions { leading?: boolean; trailing?: boolean; } export interface UseThrottleReturn<T> { value: T; setValue: (value: T) => void; throttledValue: T; isThrottled: boolean; } export declare const useThrottle: <T>(initialValue: T, interval?: number, options?: UseThrottleOptions) => UseThrottleReturn<T>; //# sourceMappingURL=useThrottle.d.ts.map