TypeScript ClearInterval ne fonctionne pas

// setInterval returns an ID which you then use to clear the interval.

let intervalId = setInterval(() => {
  // do something
  clearInterval(intervalId);
}, 500);
Anxious Alpaca