You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However at runtime, the runtime object for MyEnum has values that are all uppercase, not what specified in the TypeScript definition. Shouldn't ts-protoc-gen generates the uppercase names to match what is generated?
The text was updated successfully, but these errors were encountered:
Indeed, protoc will convert the case of enums into ALL_CAPS; the fix for ts-protoc-gen is straightforward, but I would also like to confirm that this behaviour in protoc is intentional so I've raised protocolbuffers/protobuf#3551.
If I have the following definition:
It generates the following TypeScript definition:
However at runtime, the runtime object for MyEnum has values that are all uppercase, not what specified in the TypeScript definition. Shouldn't ts-protoc-gen generates the uppercase names to match what is generated?
The text was updated successfully, but these errors were encountered: