Skip to content

Generate undefined instead of null in typescript #622

@amol-c

Description

@amol-c
  • feature

I think there has been an intense argument going around with null vs undefined in the JS community. But, in the typescript world, pretty much microsoft has recommended to avoid null and use undefined.

Can we have an option argument to generate undefined instead of null in typescript? Coming from swift world, it will be pretty useful to just deal with undefined than adding null to the mix.

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    🎉 featureNew addition or enhancement to existing solutions🤖 component - codegenrelated to the codegen core packages

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions