Related error span for "did you mean ...?" error messages #25031
Labels
Bug
A bug in TypeScript
Domain: Related Error Spans
Specifying regions for error messages/diagnostics on multiple locations.
Fixed
A PR has been merged for this issue
Milestone
Now that we support multiple related spans for errors (#10489, #22789, #24548), we'd like to improve an existing error message.
Currently, we provide an error when accessing declarations that have been misspelled.
We can add a related span on the declaration of the suggestion if one exists:
This can help users quickly glance at the original declaration.
The text was updated successfully, but these errors were encountered: