mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-22 20:37:58 +08:00
The values field of the ProtoEnum interface should be an array not a single entry. This can be seen when using the Protobuf.js parser on enum fields where a file containing:
```
enum Priority {
LOW = 1;
MEDIUM = 2;
HIGH = 3;
}
```
Is parsed to:
```
{ package: null,
messages: [],
enums:
[ { name: 'Priority',
values:
[ { name: 'LOW', id: 1 },
{ name: 'MEDIUM', id: 2 },
{ name: 'HIGH', id: 3 } ],
options: {} } ],
imports: [],
options: {},
services: [] }
```