Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
jaynetics committed Jul 6, 2024
1 parent cabb921 commit 48a89b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/src/hooks/use_delayed_loading_style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {useState} from "preact/hooks"

export const useDelayedLoadingStyle = () => {
const [enabled, setEnabled] = useState(false)
const [timer, setTimer] = useState<NodeJS.Timer | null>(null)
const [timer, setTimer] = useState<ReturnType<typeof setTimeout> | null>(null)

const startTimer = () => {
if (timer) clearTimeout(timer)
Expand Down

0 comments on commit 48a89b7

Please sign in to comment.