Skip to content

Emit class fields as-is with target: es2022 #47017

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
5 tasks done
saschanaz opened this issue Dec 4, 2021 · 0 comments Β· Fixed by #47018
Closed
5 tasks done

Emit class fields as-is with target: es2022 #47017

saschanaz opened this issue Dec 4, 2021 · 0 comments Β· Fixed by #47018
Labels
Committed The team has roadmapped this issue Suggestion An idea for TypeScript
Milestone

Comments

@saschanaz
Copy link
Contributor

Suggestion

πŸ” Search Terms

es2022, class field

βœ… Viability Checklist

My suggestion meets these guidelines:

  • This wouldn't be a breaking change in existing TypeScript/JavaScript code
  • This wouldn't change the runtime behavior of existing JavaScript code
  • This could be implemented without emitting different JS based on the types of the expressions
  • This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
  • This feature would agree with the rest of TypeScript's Design Goals.

⭐ Suggestion

Emit class fields as-is with target: es2022.

πŸ“ƒ Motivating Example

Projects targeting es2022 can emit class fields as-is.

saschanaz added a commit to saschanaz/TypeScript that referenced this issue Dec 4, 2021
@RyanCavanaugh RyanCavanaugh added Committed The team has roadmapped this issue Suggestion An idea for TypeScript labels Dec 7, 2021
@RyanCavanaugh RyanCavanaugh added this to the Backlog milestone Dec 7, 2021
sandersn pushed a commit that referenced this issue Dec 16, 2021
* Emit class fields as-is with `target: es2022`

Closes #47017

* wave 2
mprobst pushed a commit to mprobst/TypeScript that referenced this issue Jan 10, 2022
* Emit class fields as-is with `target: es2022`

Closes microsoft#47017

* wave 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Committed The team has roadmapped this issue Suggestion An idea for TypeScript
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants