rooks
Version:
Essential React custom hooks ⚓ to super charge your components!
18 lines • 725 B
TypeScript
import type { SetStateAction, Dispatch } from "react";
declare type UseDebouncedValueOptions = Partial<{
initializeWithNull: boolean;
}>;
declare type UseDebouncedValueReturnType<T> = [
debouncedValue: T | null,
immediatelyUpdateDebouncedValue: Dispatch<SetStateAction<T | null>>
];
/**
* useDebouncedValue
* @param value The value to debounce
* @param timeout The duration to debounce
* @param options The options object.
* @see https://react-hooks.org/docs/useDebouncedValue
*/
export declare const useDebouncedValue: <T = unknown>(value: T, timeout: number, options?: UseDebouncedValueOptions) => UseDebouncedValueReturnType<T>;
export {};
//# sourceMappingURL=useDebouncedValue.d.ts.map