UNPKG

396 BTypeScriptView Raw
1/**
2 * Debounce a value change by a specified number of milliseconds. Useful
3 * when you want need to trigger a change based on a value change, but want
4 * to defer changes until the changes reach some level of infrequency.
5 *
6 * @param value
7 * @param delayMs
8 * @returns
9 */
10declare function useDebouncedValue<TValue>(value: TValue, delayMs?: number): TValue;
11export default useDebouncedValue;