Better errors when accidentally calling type-assertion expressions #26991
Labels
Domain: Error Messages
The issue relates to error messaging
Effort: Moderate
Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".
Experience Enhancement
Noncontroversial enhancements
Fixed
A PR has been merged for this issue
Help Wanted
You can do this
Suggestion
An idea for TypeScript
Milestone
@mousetraps just ran into this totally garbage error message
Given
AsExpression
/TypeAssertionExpression
we should give a specialized error that ends in:
The text was updated successfully, but these errors were encountered: