Skip to content

Commit 81fb980

Browse files
committed
fix: Change timeoutRef type to number for consistency with setTimeout
1 parent a5a9fd8 commit 81fb980

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/common/hooks/useTimeout.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useCallback, useEffect, useRef } from 'react';
44
* Custom hook for handling setTimeout with cleanup
55
*/
66
export const useTimeout = () => {
7-
const timeoutRef = useRef<NodeJS.Timeout | null>(null);
7+
const timeoutRef = useRef<number | null>(null);
88

99
// Clear the timeout when component unmounts or when called manually
1010
const clearTimeout = useCallback(() => {

0 commit comments

Comments
 (0)