HTMLInputElement::formNoValidate has the wrong type #22367
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Fixed
A PR has been merged for this issue
Milestone
TypeScript Version: 2.7.1
Search Terms:
formNoValidate
Code
Expected behavior:
compiler shouldn't complain since HTMLInputElement::formNoValidate is supposed to be a boolean value
Actual behavior:
compiler reports an error due to the fact that typescript treats HTMLInputElement::formNoValidate as a string instead of a boolean
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: