protobuf.js version: <6.6.5> What happened to the reverse entries for the generated enums in the static code? I liked that feature. By reverse I mean, the generated code used to look like ```js values[valuesById[0] = "NOT_SPECIFIED"] = 0; values[valuesById[102] = "GET_MISSION"] = 102; ``` and now looks like ```js values["NOT_SPECIFIED"] = 0; values["GET_MISSION"] = 102; ``` ``` <please paste the stack trace of the error if applicable> ```
Activity
dcodeIO commentedon Mar 23, 2017
It should still emit that, except if it is an aliased key.
Reference: https://github.com/dcodeIO/protobuf.js/blob/master/cli/targets/static.js#L612
Isn't this working?
Edit:
if (aliased.indexOf(val) >= -1)is wrong, should beif (aliased.indexOf(val) > -1)Fixed: Actually emit TS compatible enums in static target if not alia…
ehallander9591 commentedon Mar 23, 2017
Hmmm. What would I have done to trigger the aliased key?
ehallander9591 commentedon Mar 23, 2017
Thank you
ehallander9591 commentedon Mar 23, 2017
Back to my normal..
joscha commentedon Mar 24, 2017
I think this might be related to #727