react-google-geocoding
Version:
A lightweight wrapper around Google Places Autocomplete and Directions APIs.
10 lines (9 loc) • 399 B
TypeScript
import { type DebouncedState } from "./use-debounce-callback";
type UseDebounceValueOptions<T> = {
leading?: boolean;
trailing?: boolean;
maxWait?: number;
equalityFn?: (left: T, right: T) => boolean;
};
export declare function useDebounceValue<T>(initialValue: T | (() => T), delay: number, options?: UseDebounceValueOptions<T>): [T, DebouncedState<(value: T) => void>];
export {};