microsoft / microsoft/TypeScript
JSDoc property description containing "@" character seems to make everything below this as undefined
オープン
@orta がすでに取り組んでいます。
2020年11月3日 から。
Bug
Domain: JSDoc
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.4k
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 117
説明
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'
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。