Загрузка...

An annoying TypeScript error (TS2488) because of forgetting to add DOM.Iterable

I added TypeScript to this little Talk Timer app. Doing that, I ran into a TypeScript error where it was complaining it couldn't find a [Symbol.iterator]() method. It turned out I forgot to add "DOM.Iterable" (I had added "DOM") to the tsconfig.json compilerOptions.lib array.

Here's more info on why DOM and DOM.Iterable are separate.
https://stackoverflow.com/questions/71510368/why-are-dom-and-dom-iterable-separate
https://github.com/microsoft/TypeScript/issues/53692

Видео An annoying TypeScript error (TS2488) because of forgetting to add DOM.Iterable канала How I Fixed My Finances
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять