tsconfig.json incorrectly relies upon browser DOM types #65
Labels
enhancement
New feature or request
TBD / Future
To be discussed, maybe implemented in the future – issues which are not pressing
wontfix
This will not be worked on
UXP supports a specific subset of browser DOM APIs. TypeScript's DOM lib, on the other hand, is extremely comprehensive. Configuring an environment with TypeScript's built-in DOM library leads to confusing bugs and causes tools to incorrectly suggest types.
Recommendation:
dom
entry from thetsconfig.json
lib
array.Attr
and friends)HTMLAnchorElement
and friends)BaseUIEvent
and friends)As Adobe incorporates more HTML and standard browser DOM APIs into UXP, the type declaration files can be updated to reflect the enhancements. This will help resolve an entire class of typo/error/etc.
The text was updated successfully, but these errors were encountered: