Skip to content

Empty enums not supported #11

@peter-leonov

Description

@peter-leonov

En empty enum is defined like this:

enum X {}

It has no members and thus reminds the never type (or even an Empty Type) that is clearly not JSON-safe.

For enums with members TS creates a union type that generator supports very well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions