typescript Type 'Timeout' is not assignable to type 'number'.ts(2322) code example
Example: Type 'Timeout' is not assignable to type 'number'.
let timeoutId: null | ReturnType<typeof setTimeout> = null
...
timeoutId = setTimeout(...)
let timeoutId: null | ReturnType<typeof setTimeout> = null
...
timeoutId = setTimeout(...)