is not assignable to time time handler setinterval code example
Example: typescript type for intervalId
let timer: ReturnType<typeof setTimeout> = setTimeout(() => { ... });
clearTimeout(timer);
let timer: ReturnType<typeof setTimeout> = setTimeout(() => { ... });
clearTimeout(timer);