Typiscript Typ dla interalid

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

clearTimeout(timer);
Expensive Eagle