Open stahlbauer opened 4 years ago
Hello, there is currently no plan to support it but it would be a nice addition to JSweet! That being said, I think it would not be so easy to make generated TS code compatible with strict mode. If you want to give a try, all PR are welcome. I recommend that you start from Java11 branch if you intend to do so because it changed a lot of things. Thanks anyway for your suggestion
Thank you for the response.
I reopen this ticket because this feature would be useful, if community wants to contribute to it some day
I would like to use the TypeScript compiler (compiling von Java to TypeScript) with the option
--strict
. Nevertheless, the generated code is not yet fully strict, while this would be possible.At the moment, JSweet generates code like the following:
This results in several compiler errors if
--strict
is enabled:The relevant code in Jsweet is in the class
Java2TypeScriptTranslator
at line 2649.