microsoft / microsoft/TypeScript
[API] Narrow types of `Node` attributes when possible
Đang mở
@andrewbranch đang làm issue này rồi.
Từ ngày 11/8/2026.
Needs Investigation
- Ngôn ngữ chính
- Go
- Star
- 111k
- Fork
- 14.3k
- Merge trung bình
- 2 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 132
Mô tả
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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.