Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
a-type committed Feb 23, 2025
1 parent 3b8478a commit 3c8d7a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/src/hooks/useDebounced.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function useDebouncedCallback<T extends (...args: any[]) => any>(
delay: number,
) {
const [debouncedCallback] = useState(() => {
let timeout: NodeJS.Timeout;
let timeout: number;
return (...args: Parameters<T>) => {
clearTimeout(timeout);
timeout = setTimeout(() => {
Expand Down

0 comments on commit 3c8d7a9

Please sign in to comment.