-
Notifications
You must be signed in to change notification settings - Fork 153
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
Feature request: support for TypeScript non experimental decorators (Stage 3) #3085
Comments
Hi @WtfJoke, thanks for opening the issue. This has been on my radar for a while but you're the first one to request it. Technically speaking the change is doable, but it would be a breaking change we can't do it without a major version bump. Besides the change itself and the version bump, releasing a new major version would require us a significant amount of work in documentation, outreach, and support that we are not yet ready to take on - at least not until the end of the year. Something that I would like to explore is whether we can support both versions of the decorator at the same time, possibly using the From a first exploration that I did when TS switched implementation, for what this library is concerned only modify the signature of the decorator factory & function. We'll have to see if we can support both at runtime and selectively chose the types. For future readers, if you also want this feature please leave 👍 on the original comment and/or leave a comment with your use case. Having this type of influence will help us reassess the priority as needed. |
Yeah I was hoping/assuming that there is no need for a major version change in implementing this feature. Instead maybe introducing a new method and deprecate the old one (and remove the deprecated one in the next major release). I can understand that the next major version will be not around any soon :D.
That sounds promising and would be great (and match my hopes from above 😄 )! Thanks for replying so fast and share your insights @dreamorosi |
No problem, also added this to the v3 feature list discussion #2560 |
Use case
We use Tracers functionality to capture class methods using decorators as described in the docs.
Typescript 5.0+ has official (non experimental) support for decorators.
However as soon as we remove the tsconfig.json flag
experimentalDecorators
(or set it to false) we get compile errors:Solution/User Experience
It would be great if we have support for non experimental decorators so we can remove outdated decorators functionality.
Alternative solutions
No response
Acknowledgment
Future readers
Please react with 👍 and your use case to help us understand customer demand.
The text was updated successfully, but these errors were encountered: