Better JSX property error messages #23117
Labels
Bug
A bug in TypeScript
Domain: Error Messages
The issue relates to error messaging
Domain: JSX/TSX
Relates to the JSX parser and emitter
Fixed
A PR has been merged for this issue
Milestone
JSX component property errors are limited in nature. seems like there is one of three categories:
Currently we rely on the assignablity error message which a. includes information about intrinsic types, react types, etc.. and b. does not pin point the offending property.
We can do better by reporting the errors on the specific property in cases of failed assignablity, and be more explicit about what it is that the user is doing wrong.. e.g. "Missed required property 'x'
or
type of property 'y'does not match expected..
Related to #23116
Originally reported in https://twitter.com/keeskluskens/status/981168047204458501
The text was updated successfully, but these errors were encountered: