Microsoft/TypeScript
Voir sur GitHubtsc build declarationMap generates incorrect mappings from JSDoc
Open
#48 087 ouverte le 2 mars 2022
BugDomain: Declaration EmitHelp Wanted
Métriques du dépôt
- Stars
- (48 455 stars)
- Métriques de merge PR
- (Merge moyen 6j 17h) (9 PRs mergées en 30 j)
Description
Bug Report
🔎 Search Terms
declarationMap (declaration map) incorrect mappings JSDoc
🕗 Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries
$ npx typescript@next --version
Version 4.7.0-dev.20220302
⏯ Playground Link
SourceMap visualizer with relevant code
💻 Code
Source code sample used in visualizer
🙁 Actual behavior
Go To Definition in VS Code is off by some line / columns. Source mapping visualizer seem to show that generated map is not accurate.
🙂 Expected behavior
Correct source mapping for all type definitions, including function parameters and their types.