Issue better error message for binary operations between numbers and bigints #28424
Labels
Domain: Error Messages
The issue relates to error messaging
Experience Enhancement
Noncontroversial enhancements
Suggestion
An idea for TypeScript
Milestone
Each of these gives an error like "Operator '{0}' cannot be applied to types '{1}' and '{2}'". It should somehow tell the user that the
number
argument needs to be converted to abigint
.The text was updated successfully, but these errors were encountered: