Suggestions for misspelled properties and variables (based on Levenshtein distance for variables/properties in scope) #15333
Labels
Committed
The team has roadmapped this issue
Fixed
A PR has been merged for this issue
Suggestion
An idea for TypeScript
Milestone
Consider the following code:
Currently compilation fails with the message:
In case when a variable is misspelled, the error is even less helpful:
It could offer variable/property suggestion, like:
For example, Rust compiler (1.16) would suggest an existing variable that most resembles the misspelled one, based on Levenstein distance, if I'm correct.
The text was updated successfully, but these errors were encountered: