Type de dactylographie pour intervalide

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

clearTimeout(timer);
Expensive Eagle