Improve HTMLImageElement.loading #48658
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Help Wanted
You can do this
Milestone
lib Update Request
Configuration Check
My compilation target is
ES2015
and my lib isthe default
.Missing / Incorrect Definition
HTMLImageElement.loading is currently a
string
, but the only valid values for it areeager
andlazy
Sample Code
While the string works, it allows for invalid values. ex:
is valid, as well as:
I would expect both of these cases to throw a warning at least on invalid/not useful value
Documentation Link
https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/loading
The text was updated successfully, but these errors were encountered: