TypeScript ClearInterval nie działa

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

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