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
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
Комментарии отсутствуют
Информация о видео
24 мая 2025 г. 3:09:59
00:01:44
Другие видео канала