UNPKG

@reservoir0x/relay-kit-ui

Version:

Relay is the Fastest and Cheapest Way to Bridge and Transact Across Chains.

11 lines 476 B
import { type DebouncedState, useDebounceValue } from 'usehooks-ts'; type Params<T> = Parameters<typeof useDebounceValue>; export default function useDebounceState<T>(initialValue: Params<T>[0], delay: Params<T>[1], options?: Params<T>[2]): { value: T; debouncedValue: T; setValue: (value: T) => void; setDebouncedValue: (value: T) => void; debouncedControls: DebouncedState<(value: T) => void>; }; export {}; //# sourceMappingURL=useDebounceState.d.ts.map