UNPKG

@nex-ui/hooks

Version:

A collection of React Hooks for Nex UI components.

12 lines (10 loc) 298 B
interface DebounceOptions { wait?: number; leading?: boolean; trailing?: boolean; maxWait?: number; } type noop = (...args: any[]) => any; declare function useDebounce<T extends noop>(fn: T, options?: DebounceOptions): any; export { useDebounce }; export type { DebounceOptions };