Skip to content

Ts 5.0 decorators#1449

Merged
Perryvw merged 7 commits intomasterfrom
ts-5.0-decorators
Jun 4, 2023
Merged

Ts 5.0 decorators#1449
Perryvw merged 7 commits intomasterfrom
ts-5.0-decorators

Conversation

@Perryvw
Copy link
Copy Markdown
Member

@Perryvw Perryvw commented Jun 3, 2023

Added support for new TS5.0 decorators.

Field decorators are only partially supported for now, the value initializers are currently ignored. If you try to use a value initializer, a warning will be shown.

@Zamiell
Copy link
Copy Markdown
Contributor

Zamiell commented Jun 3, 2023

Can we have an overview of any new features?
Or is this PR more of an internal-only reorganization to comply with the new spec?

@Perryvw
Copy link
Copy Markdown
Member Author

Perryvw commented Jun 3, 2023

Can we have an overview of any new features? Or is this PR more of an internal-only reorganization to comply with the new spec?

It's support for the new TypeScript 5.0 decorators, you should probably just look at their overview: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-0.html#decorators

And I also found this article they linked to useful:
https://2ality.com/2022/10/javascript-decorators.html

@Perryvw Perryvw linked an issue Jun 4, 2023 that may be closed by this pull request
@Perryvw Perryvw merged commit ecf6d08 into master Jun 4, 2023
@Perryvw Perryvw deleted the ts-5.0-decorators branch June 4, 2023 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeScript 5 Decorator does not work in TSTL 1.15.1

2 participants