Closed Alex66955 closed 3 years ago
I would recommend a plugin that we have been developing and maintaining for these edge cases which is caused by protocol buffers javascript output itself.
I am facing the same issue. I really need protoc enum to be compiled as enum
, not interface..
@AJLoveChina you can check out the alternative.
I also solved my issue with that plugin.
ts-protoc-gen: 0.14.0 libprotoc: 3.15.6
What happened Updating module to the last version causes creation of interfaces instead of enumerations Proto:
d.ts:
What you expected to happen d.ts:
Full logs to relevant components Executed command:
protoc --plugin=protoc-gen-ts=node_modules/.bin/protoc-gen-ts --ts_out=generated --proto_path=protos --proto_path=shared/protos protos/*.proto shared/protos/*.proto shared/protos/generated/*.proto