Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enum keys not exported #4

Open
manjabes opened this issue Oct 23, 2023 · 0 comments
Open

Enum keys not exported #4

manjabes opened this issue Oct 23, 2023 · 0 comments

Comments

@manjabes
Copy link

manjabes commented Oct 23, 2023

It seems to me that Enum definitions are exported incorrectly. For the following proto snippet

enum UpdateType {
  SYNC = 0;
  UPSERT = 1;
  DELETE = 2;
}

the generated TS type definition was

export enum UpdateType {
    SYNC = 'SYNC',
    UPSERT = 'UPSERT',
    DELETE = 'DELETE',
}

whereas I would've expected the numeric constants as values (or keys, but present nevertheless).

@manjabes manjabes changed the title Enum values not exported Enum keys not exported Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant