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