Skip to content
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

fix: merge decorators into modifiers #41

Closed
wants to merge 1 commit into from

Conversation

ph-fritsche
Copy link

@ph-fritsche ph-fritsche commented Dec 9, 2023

The decorators parameter has been removed from Typescript APIs.
See microsoft/TypeScript#49089

This broke the calls of multiple node factory methods in the transformer.

This change updates the code for Typescript 5.3 and adds an interop helper that searches for decorators, modifiers, parameters on the called function and splits the argument on that position.

Fixes #34
Closes #38
Closes #39

I replaced the ts-node/esm loader with tsx because it threw Typescript errors in any version and updated rollup plugin and linter to support the recent Typescript versions.

@ph-fritsche ph-fritsche deleted the branch wessberg:master December 27, 2023 18:06
@ph-fritsche ph-fritsche deleted the master branch December 27, 2023 18:06
@ph-fritsche ph-fritsche restored the master branch December 27, 2023 18:07
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.

Doesn't work with newer TypeScript versions
2 participants