typescript type timeout is not assignable to 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(...)