Skip to content

Support enum with custom number indexes #6

@lorisleiva

Description

@lorisleiva

If enum variants have custom discriminator values, we should consider using them when generating the enum in JavaScript or Rust.

enum MyEnum {
  First = 1,
  Second,
  Fifth = 5,
}

The same goes for discriminated unions in JavaScript which is going to be a combination of the type discriminator and/or the codec's options.

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