microsoft / microsoft/TypeScript
Custom JSDoc type cannot be extended
@sandersn đang làm issue này rồi.
Từ ngày 9/7/2025.
- 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ả
Does this issue occur when all extensions are disabled?: Yes/No
- VS Code Version: 1.99.3
- OS Version: Linux x64 6.11.0-24-generic
Steps to Reproduce:
1. Define a base JSDoc type:
```js
/**
* @typedef {object} baseType
* @property {string} baseProperty
*/
```
2. Define a child type and add a property:
```js
/**
* @typedef {baseType} childType
* @property {string} childProperty
*/
```
Expected behavior: `childType` has `baseProperty` from `baseType` and `childProperty` from the own definition.
Actual behavior: `childType` has only `baseProperty` from `baseType`.
However, it works in WebStorm:
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á.