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
grpc_tools_node_protoc automatically uppercases enum keys, whereas grpc_tools_node_protoc_ts maintains whatever casing is in the proto file. The mismatch causes typescript errors when using the javascript enum correctly.
grpc_tools_node_protoc automatically uppercases enum keys, whereas grpc_tools_node_protoc_ts maintains whatever casing is in the proto file. The mismatch causes typescript errors when using the javascript enum correctly.
Example repo here: https://github.com/TLadd/example-grpc-enum.
Proto file: https://github.com/TLadd/example-grpc-enum/blob/master/helloworld.proto#L32
Generated js: https://github.com/TLadd/example-grpc-enum/blob/master/helloworld_pb.js#L160
Generated ts:
https://github.com/TLadd/example-grpc-enum/blob/master/helloworld_pb.d.ts#L33
The text was updated successfully, but these errors were encountered: