Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Enums as types #28

Description

@poteirard

Hi,

First of all thank you for your work and time.

If possible I think it will be good to have the enums as types.

For example:

For this swagger file:

correspondence:
        type: "string"
        enum:
        - "EMAIL"
        - "POST"
        - "SMS"
        - "NONE"

To have this type definition:

export type correspondence = 'EMAIL' | 'POST' | 'SMS' | 'NONE';

What do you think?

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions