Skip to content

Support for --strictNullChecks for the generated code #30

Open

Description

@mhgamework

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?

Activity

  1. praeclarum commented on Nov 4, 2018

    @praeclarum
    Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions