Errors on non-callable unions should be more specific #29013
Labels
Domain: Error Messages
The issue relates to error messaging
Experience Enhancement
Noncontroversial enhancements
Suggestion
An idea for TypeScript
Milestone
While working on #29011 I realized that the error we produce for unions of things which look callable but for which we cannot synthesize a signature for are lackluster. We report an error like:
when we could do better and say something like
which would make it far more clear what's going on in these scenarios.
Once #29011 is merged, the conditions can be even more specific, such as
and
The text was updated successfully, but these errors were encountered: