[protocol-buffers-schema] add "options" (#43063)

* add "options"

* bumped version number
This commit is contained in:
Claas Ahlrichs
2020-03-12 17:44:42 -07:00
committed by GitHub
parent c04be47784
commit f5433b84c0
3 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
// Type definitions for protocol-buffers-schema 3.3
// Type definitions for protocol-buffers-schema 3.4
// Project: https://github.com/mafintosh/protocol-buffers-schema
// Definitions by: Claas Ahlrichs <https://github.com/claasahl>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -12,6 +12,14 @@ message Line {
required Point start = 1;
required Point end = 2;
optional string label = 3;
}
message OptionFields {
optional string type = 2 [mylist = "some,values,[here]"];
}
message MoreOptionFields {
optional string values = 3 [mylist2 = '[more, values], [here]'];
}`;
// pass a buffer or string to schema.parse
+1
View File
@@ -41,6 +41,7 @@ export interface Message {
extends: Extend[];
extensions: Extension[];
messages: Message[];
options: Options;
fields: Field[];
}