Skip to content

Improve error messages for missing properties in tsx syntax #26423

@tobiasviehweger

Description

@tobiasviehweger

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)

Metadata

Metadata

Assignees

Labels

CommittedThe team has roadmapped this issueDomain: Error MessagesThe issue relates to error messagingExperience EnhancementNoncontroversial enhancementsFixedA PR has been merged for this issueSuggestionAn idea for TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions