Published
- 1 min read
Type `Timeout` is not assignable to type `number`.
The solution for this is noted below
Type Timeout
is not assignable to type number
.
Solution
let timeoutId: null | ReturnType<typeof setTimeout> = null
...
timeoutId = setTimeout(...)
Try other methods by searching on the site. That is if this doesn’t work