You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fair, I don't think many people do that though. And there are other tools to check compatibility (e.g. ESLint's eslint-plugin-compat); is it really TypeScript's role? (note that I don't have a strong opinion on this)
It's not clear what you would do if you were targeting a browser that doesn't have iterable, though?
Interesting consideration! Thoughts:
Being able to use "es2024.full" seems useful.
Not sure if thatβs feasible but removing features would help in this case:
"lib": ["DOM", "-DOM.Iterable"]
The rules for what is and isnβt included in DOM could be mentioned in microsoft/TypeScript-DOM-lib-generator. I thought the following rule applied in this case (but reading it again now, it probably doesnβt): βA feature needs to be supported by two or more major browser engines to be included hereβ
π Search Terms
lib, dom, dom.iterable
π Version & Regression Information
β― Playground Link
No response
π» Code
π Actual behavior
"lib"
is omitted fromtsconfig.json
."lib"
is["es2024", "DOM"]
"lib"
is["es2024", "DOM", "DOM.iterable"]
π Expected behavior
Given how broadly supported DOM.iterable is, it should be part of DOM by now(?)
Interestingly, es2024.full looks like this but canβt be used as a value of
"lib"
:Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: