microsoft / microsoft/TypeScript
Should `lib` support `disposable`? Should `decorators` be merged with `esnext.decorators`?
@rbuckton ya está trabajando en esto.
Desde el 29/6/2023.
- Lenguaje dominante
- Go
- Estrellas
- 111k
- Forks
- 14.4k
- Merge medio
- 1 d 19 h
- PR fusionados (30 d)
- 117
Descripción
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?
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Evaluación
Este issue todavía no se ha evaluado.