Provide a better error message when "async" is mistyped? #25429
Labels
Bug
A bug in TypeScript
Domain: Error Messages
The issue relates to error messaging
Help Wanted
You can do this
Milestone
Search Terms
error message async function
Suggestion
When I mistype
async
as something likeasdync
, the error messages are quite unhelpful. It would be nice to have "did you mean async?" suggestions, as when we mistype a variable name. Perhaps if the edit distance from this particular keyword is small?If this idea is a good one, it might make sense to expand it to
public
,protected
, etc.Use Cases
This is a common thing for me, sadly. I assume new users have this problem as well.
Examples
Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: