You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fails to produce the error, however by tweaking the type of createElement in @types/react I'm able to fix that. So #14729 seems related, in that, if the JSX type checking were based on createElement's type, this issue could be fixed by fixing @types/react.
The text was updated successfully, but these errors were encountered:
The funny thing is that the type error appears on the first property added to the object, but as soon as you have one valid property, all of them becomes valid.
Is this issue still considered a bug, now in the backlog?
TypeScript Version: 3.2.2
Search Terms:
excess property jsx
Code
Expected behavior:
Both of the last 2 lines should exhibit an excess property error.
Actual behavior:
Only the first line does.
Related Issues:
It's also the case that
fails to produce the error, however by tweaking the type of
createElement
in@types/react
I'm able to fix that. So #14729 seems related, in that, if the JSX type checking were based oncreateElement
's type, this issue could be fixed by fixing@types/react
.The text was updated successfully, but these errors were encountered: