-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
TBD / FutureTo be discussed, maybe implemented in the future – issues which are not pressingTo be discussed, maybe implemented in the future – issues which are not pressingenhancementNew feature or requestNew feature or requestwontfixThis will not be worked onThis will not be worked on
Description
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:
- Remove the
domentry from thetsconfig.jsonlibarray. - Create UXP-specific type declaration files for the following:
- UI Classes (e.g.
Attrand friends) - HTML Elements (e.g.
HTMLAnchorElementand friends) - Events (e.g.
BaseUIEventand friends)
- UI Classes (e.g.
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
TBD / FutureTo be discussed, maybe implemented in the future – issues which are not pressingTo be discussed, maybe implemented in the future – issues which are not pressingenhancementNew feature or requestNew feature or requestwontfixThis will not be worked onThis will not be worked on