Skip to content

Commit

Permalink
Fix #5071: useDebounce Typescript (#5072)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Oct 10, 2023
1 parent d94fe45 commit 73e67d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/hooks/hooks.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export declare function useCounter(initialValue: number, options: { min: number;
* @param {*} initialValue - The initial value for debounce.
* @param {number} delay - The delay in milliseconds.
*/
export declare function useDebounce(initialValue: any, delay: number): any[];
export declare function useDebounce<S>(initialValue: S, delay: number): [S, React.Dispatch<React.SetStateAction<S>>];
/**
* Custom hook to use to get the current mouse position.
*/
Expand Down

0 comments on commit 73e67d3

Please sign in to comment.