TS2322: Type 'Timeout' is not assignable to type 'number'. 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(...)