HTMLImageElement#crossOrigin should use literal union type from allowable values #39829
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Milestone
TypeScript Version: Nightly 2020-07-29
Search Terms: htmlimageelement crossorigin
Code
Expected behavior:
Type should be defined with string literals, per this MDN page
Actual behavior:
Property is typed as
string | null
.Playground Link
The text was updated successfully, but these errors were encountered: