UNPKG

foxact

Version:

React Hooks/Utils done right. For browser, SSR, and React Server Components.

6 lines (4 loc) 251 B
type NotFunction<T> = T extends Function ? never : T; /** @see https://foxact.skk.moe/use-debounced-value */ declare function useDebouncedValue<T>(value: NotFunction<T>, wait: number, leading?: boolean): NotFunction<T>; export { useDebouncedValue };