You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error message correctly identifies a possible call to the function. In the presence of an invalid call, we can only ever guess which overload you meant to call; the heuristic is to simply select the last one and report errors against that.
@RyanCavanaugh The guesswork is extremely misleading in cases like this. Instead of guesswork, the error message should be generic. It would be MUCH better with an error message like this "Invalid call. Can not find appropriate overload."
TypeScript Version: 3.4.3
overload error message
Code
Expected behavior:
Sensible error message about callback argument type not matching event or no overload matching signature etc.
Actual behavior:
Error: Argument of type '"attach"' is not assignable to parameter of type '"firstScanDone"'.
Related Issues:
No
The text was updated successfully, but these errors were encountered: