microsoft / microsoft/TypeScript

Extending @typedefs by adding additional properties doesn't seem to work?

オープン
#42,877 コメント 6 件 リアクション 3 件 担当者 1 名 GitHub で見る

@sandersn がすでに取り組んでいます。

2021年2月23日 から。

Needs Proposal Suggestion
主要言語
Go
スター
111k
フォーク
14.4k
平均マージ
1日 19時間
マージ済み PR(30日)
117

説明

I know this can be done with an intersection type, but that can often get quite verbose as it often requires an additional typedef to be defined.

As you can see in the below screenshot, i would expect propThree to be present in the extended const.

Is this syntax supported by vscode, looking around it seems to be in webstorm?

Screenshot 2021-02-19 at 10 20 36

Sandbox example: https://codesandbox.io/s/vigilant-https-7h845?file=/src/Animal.js

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。