-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Open
Labels
Description
Describe the solution you'd like
It would be nice if the generated code could run without transpilation (eg directly executing it in node). Since Typescript 5.8. there's a compiler option to enforce this named "erasableSyntaxOnly". See https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-8.html#the---erasablesyntaxonly-option
It looks like the only problem in the generated code patterns like the following
constructor(private configuration: ConfigurationParameters = {}) {}in the runtime.ts.
Describe alternatives you've considered
The only possible solution is to patch the runtime manually.
Additional context
As outlined above if the generated code passes "erasableSyntaxOnly": true it is possible to run it directly on NodeJS, removing the need to transpile it.