Skip to content

Improve error messages for missing properties in tsx syntax #26423

Closed

Description

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

CommittedDomain: Error MessagesExperience EnhancementFixedSuggestion

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions