microsoft / microsoft/TypeScript
Should `lib` support `disposable`? Should `decorators` be merged with `esnext.decorators`?
オープン
@rbuckton がすでに取り組んでいます。
2023年6月29日 から。
Needs Investigation
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.4k
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 117
説明
Currently, you can access all the explicit resource management stuff via the following lib option:
"lib": ["es2022", "esnext.disposable"],
However, the following doesn't work:
"lib": ["es2022", "disposable"],
Should it? It is kind of weird that there is no disposable setting whereas you can for decorators.
When I looked into this, I realized an oddity - that there is both a decorators and esnext.decorators, but that they are not the same thing despite both being part of esnext. The only difference is that esnext.decorators defines Symbol.metadata.
These are both part of esnext, so should they be merged?
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。