microsoft / microsoft/TypeScript
[API] Narrow types of `Node` attributes when possible
Offen
@andrewbranch arbeitet bereits daran.
Seit 11.8.2026.
Needs Investigation
- Vorherrschende Sprache
- Go
- Sterne
- 111k
- Forks
- 14.3k
- Ø Merge
- 2 T. 4 Std.
- Gemergte PRs (30 T.)
- 132
Beschreibung
In TS 6, many node attributes were typed with the types which they would always be at runtime. In TS 7 this information has been lost.
JSDocTypedefTag#parentshould beJSDocJSDocTypedefTag#typeExpressionshould probably beTypeNodeNode#jsDocshould bereadonly JSDoc[]
There are likely others I haven't noticed yet
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.