microsoft / microsoft/TypeScript

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

Aperta
#54,822 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@rbuckton ci sta già lavorando.

Dal 29/6/2023.

Needs Investigation
Lingua principale
Go
Stelle
111k
Fork
14.4k
Merge medio
1g 19h
PR unite (30g)
117

Descrizione

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?

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.