Skip to content

Commit

Permalink
chore: Fix timeout type definitions (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
just-boris authored Dec 9, 2022
1 parent ba62005 commit 6a2e638
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/progress-bar/with-updates.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import Box from '~components/box';
export default function ProgressBarWithUpdates() {
const [progressStep1, setProgressStep1] = useState(0);
const [progressStep10, setProgressStep10] = useState(0);
const timeoutRef1 = useRef<NodeJS.Timeout | number>();
const timeoutRef10 = useRef<NodeJS.Timeout | number>();
const timeoutRef1 = useRef<ReturnType<typeof setTimeout>>();
const timeoutRef10 = useRef<ReturnType<typeof setTimeout>>();

const activateTimerStep1 = () => {
resetTimeoutStep1();
Expand Down

0 comments on commit 6a2e638

Please sign in to comment.