Type de dactylographie pour intervalide
let timer: ReturnType<typeof setTimeout> = setTimeout(() => { ... });
clearTimeout(timer);
Expensive Eagle
let timer: ReturnType<typeof setTimeout> = setTimeout(() => { ... });
clearTimeout(timer);