Skip to content

Commit 6a2e638

Browse files
authored
chore: Fix timeout type definitions (#570)
1 parent ba62005 commit 6a2e638

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/progress-bar/with-updates.page.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import Box from '~components/box';
1010
export default function ProgressBarWithUpdates() {
1111
const [progressStep1, setProgressStep1] = useState(0);
1212
const [progressStep10, setProgressStep10] = useState(0);
13-
const timeoutRef1 = useRef<NodeJS.Timeout | number>();
14-
const timeoutRef10 = useRef<NodeJS.Timeout | number>();
13+
const timeoutRef1 = useRef<ReturnType<typeof setTimeout>>();
14+
const timeoutRef10 = useRef<ReturnType<typeof setTimeout>>();
1515

1616
const activateTimerStep1 = () => {
1717
resetTimeoutStep1();

0 commit comments

Comments
 (0)