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
the enum does not appear at all on the output. The reason for that is, that the $types[1] is actually a map from string to int, so searching for the int value in it returns undefined.
The text was updated successfully, but these errors were encountered:
Should be fixed within #720 - isn't it? The intended behavior is to emit TypeScript-like enums with both string and number keys with the respective other as the values, i.e.:
protobuf.js version: master
HEAD
(6.7.0)EDIT: Still works in
6.6.3
, first broken version is6.6.4
When transforming the following file:
via:
The following
.toObject
code gets generated:when using:
the enum does not appear at all on the output. The reason for that is, that the
$types[1]
is actually a map from string to int, so searching for the int value in it returnsundefined
.The text was updated successfully, but these errors were encountered: