mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-12 19:59:02 +08:00
Merge pull request #11882 from jchildren/patch-1
Correction to array type for ProtoEnum in ProtoBuf.js
This commit is contained in:
@@ -180,7 +180,9 @@ function assertIsProtoEnum(pe: ProtoBuf.ProtoEnum, name: string) {
|
||||
assert.ok("values" in pe, name + " should contain property values");
|
||||
assert.ok("options" in pe, name + " should contain property options");
|
||||
|
||||
assertIsProtoEnumValue(pe.values, name + ".values");
|
||||
for (var value in pe.values) {
|
||||
assertIsProtoEnumValue(pe.values[value], name + ".values." + value);
|
||||
}
|
||||
}
|
||||
|
||||
function assertIsProtoEnumValue(pev: ProtoBuf.ProtoEnumValue, name: string) {
|
||||
|
||||
2
protobufjs/protobufjs.d.ts
vendored
2
protobufjs/protobufjs.d.ts
vendored
@@ -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