mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-27 20:10:58 +00:00
7 lines
351 B
TypeScript
7 lines
351 B
TypeScript
import { SetStateAction } from 'react';
|
|
export interface UseDebouncedStateOptions {
|
|
leading?: boolean;
|
|
}
|
|
export type UseDebouncedStateReturnValue<T> = [T, (newValue: SetStateAction<T>) => void];
|
|
export declare function useDebouncedState<T = any>(defaultValue: T, wait: number, options?: UseDebouncedStateOptions): UseDebouncedStateReturnValue<T>;
|