Jenis TypeScript untuk intervalid

let timer: ReturnType<typeof setTimeout> = setTimeout(() => { ... });

clearTimeout(timer);
Expensive Eagle