@wordpress/compose
Version:
WordPress higher-order components (HOCs).
8 lines • 355 B
TypeScript
/**
* Helper hook for input fields that need to debounce the value before using it.
*
* @param defaultValue The default value to use.
* @return The input value, the setter and the debounced input value.
*/
export default function useDebouncedInput(defaultValue?: string): [string, (value: string) => void, string];
//# sourceMappingURL=index.d.ts.map