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

Support for --strictNullChecks for the generated code #30

Open
mhgamework opened this issue May 12, 2017 · 1 comment
Open

Support for --strictNullChecks for the generated code #30

mhgamework opened this issue May 12, 2017 · 1 comment
Labels

Comments

@mhgamework
Copy link

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?

@praeclarum
Copy link
Owner

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

@praeclarum praeclarum added the bug label Nov 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants