Skip to content

Omit optional properties by default? #65

@zhouzi

Description

@zhouzi

From #63 (review):

What do you think about not adding the optional properties at all by default? By default the TypeScript plugins set the properties to title?: Maybe<string> and have an option "avoidOptionals" to remove the ?. So I feel like not adding the optional properties unless "avoidOptionals" is set to true would be closer to the TypeScript plugins' defaults and avoid issues similar to the one you faced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions