Netjs
Netjs copied to clipboard
Support for --strictNullChecks for the generated code
I want to use NetJS to have some shared code between my typescript and csharp codebase. I am however using --strictNullChecks in typescript 2.0 and would like to keep using that.
netjs generates "AddIntegrationRequest: string = null;" for fields, while for typescript 2.0 this should be "AddIntegrationRequest: (string | null) = null;"
I already fixed these errors manually for the mscorlib.ts, but i cannot do this for the generated code easily.
Is there some workaround for this problem or a plan to solve?
I will look into fixing this. Thanks for the heads-up.