Netjs icon indicating copy to clipboard operation
Netjs copied to clipboard

Support for --strictNullChecks for the generated code

Open mhgamework opened this issue 7 years ago • 1 comments

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?

mhgamework avatar May 12 '17 14:05 mhgamework

I will look into fixing this. Thanks for the heads-up.

praeclarum avatar Nov 04 '18 02:11 praeclarum