microsoft / microsoft/TypeScript
JSDoc property description containing "@" character seems to make everything below this as undefined
Đang mở
@orta đang làm issue này rồi.
Từ ngày 3/11/2020.
Bug
Domain: JSDoc
- 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ả
This is an issue with TS typings declarations generated from JSDoc and code analysis
TypeScript Version: 3.8.3
Search Terms: jsdoc property at @ description link markdown
Code
/**
* @typedef SomeTypeDef
* @property {string} property1
* I'm a comment with an [@s](link)
* @property {boolean} propertyCantBeAccessed
*/
/**
* @param {SomeTypeDef} s
*/
const f = (s) => {
s.propertyCantBeAccessed
}
f({
property1: 'only exists here',
propertyCantBeAccessed: false
})
Expected behavior:
The property exists and can be accessed
Actual behavior:
Code fails with Property 'propertyCantBeAccessed' does not exist on type 'SomeTypeDef'
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á.