From d0646a66509a01bbcda096e208dc38cdcc743cbd Mon Sep 17 00:00:00 2001 From: John Children Date: Fri, 7 Oct 2016 17:07:44 +0100 Subject: [PATCH] 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: [] } ``` --- protobufjs/protobufjs.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protobufjs/protobufjs.d.ts b/protobufjs/protobufjs.d.ts index fac34be103..139a9b94c8 100644 --- a/protobufjs/protobufjs.d.ts +++ b/protobufjs/protobufjs.d.ts @@ -224,7 +224,7 @@ declare namespace ProtoBuf { export interface ProtoEnum { name: string; - values: ProtoEnumValue; + values: ProtoEnumValue[]; options: {[key: string]: any}; }