Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error messages for missing properties in tsx syntax #26423

Closed
4 tasks done
tobiasviehweger opened this issue Aug 13, 2018 · 0 comments
Closed
4 tasks done

Improve error messages for missing properties in tsx syntax #26423

tobiasviehweger opened this issue Aug 13, 2018 · 0 comments
Assignees
Labels
Committed The team has roadmapped this issue Domain: Error Messages The issue relates to error messaging Experience Enhancement Noncontroversial enhancements Fixed A PR has been merged for this issue Suggestion An idea for TypeScript

Comments

@tobiasviehweger
Copy link

Search Terms

TSX Error Message Missing Property Improve

Suggestion

With Typescript 3.0, error messages in .tsx files already improved:
image

This is great! However, for missing properties, the error message is still.. long ;)
image

Would it be possible to improve this as well?

Use Cases

Quicker view of which property is missing.

Examples

See first screenshot.

Checklist

My suggestion meets these guidelines:

  • This wouldn't be a breaking change in existing TypeScript / JavaScript code
  • This wouldn't change the runtime behavior of existing JavaScript code
  • This could be implemented without emitting different JS based on the types of the expressions
  • This isn't a runtime feature (e.g. new expression-level syntax)
@RyanCavanaugh RyanCavanaugh added Suggestion An idea for TypeScript Domain: Error Messages The issue relates to error messaging Experience Enhancement Noncontroversial enhancements labels Aug 14, 2018
@RyanCavanaugh RyanCavanaugh added this to the TypeScript 3.2 milestone Aug 14, 2018
@weswigham weswigham added the Committed The team has roadmapped this issue label Nov 6, 2018
@DanielRosenwasser DanielRosenwasser added the Fixed A PR has been merged for this issue label Jan 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Committed The team has roadmapped this issue Domain: Error Messages The issue relates to error messaging Experience Enhancement Noncontroversial enhancements Fixed A PR has been merged for this issue Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

4 participants