Typscript ClearInterval funktioniert nicht

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

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