@mantine/hooks
Version:
A collection of 50+ hooks for state and UI management
3 lines (2 loc) • 323 B
TypeScript
export declare function useThrottledCallbackWithClearTimeout<T extends (...args: any[]) => any>(callback: T, wait: number): readonly [(...args: Parameters<T>) => void, () => void];
export declare function useThrottledCallback<T extends (...args: any[]) => any>(callback: T, wait: number): (...args: Parameters<T>) => void;