microsoft / microsoft/TypeScript

Should `lib` support `disposable`? Should `decorators` be merged with `esnext.decorators`?

オープン
#54,822 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

@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?

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

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

はじめの一歩

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

評価

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

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

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