TypeScript Version: Nightly 2020-07-29
Search Terms: htmlimageelement crossorigin
Code
const i = new Image(10, 10);
// @ts-expect-error
i.crossOrigin = "abc"; // Must be "anonymous" or "use-credentials"
Expected behavior:
Type should be defined with string literals, per this MDN page
Actual behavior:
Property is typed as string | null.
Playground Link
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