microsoft / microsoft/TypeScript

[API] Narrow types of `Node` attributes when possible

Aperta
#63,877 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@andrewbranch ci sta già lavorando.

Dal 11/8/2026.

Needs Investigation
Lingua principale
Go
Stelle
111k
Fork
14.3k
Merge medio
2g 4h
PR unite (30g)
132

Descrizione

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#parent` should be `JSDoc`
- `JSDocTypedefTag#typeExpression` should probably be `TypeNode`
- `Node#jsDoc` should be `readonly JSDoc[]`

There are likely others I haven't noticed yet

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.