mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 23:37:04 +00:00
Correct minor error on ProtoEnum values array
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: [] }
```
This commit is contained in:
Vendored
+1
-1
@@ -224,7 +224,7 @@ declare namespace ProtoBuf {
|
||||
|
||||
export interface ProtoEnum {
|
||||
name: string;
|
||||
values: ProtoEnumValue;
|
||||
values: ProtoEnumValue[];
|
||||
options: {[key: string]: any};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user