Skip to content

Allow to keep the original order of the enum values #404

Open
@bertrandE

Description

@bertrandE

As I understand, the enum values are sorted alphabetically using the "sort" function.

definition.enum = enumValues.sort();

I am using this library to automatically generate documentation and it would interesting to be able to keep the original order of the enum values (as it might be easier to understand when reading the generated documentation).

It would be nice to have a way of telling TJS to keep the original enum values order defined in the source code.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions