mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
[protocol-buffers-schema] add "options" (#43063)
* add "options" * bumped version number
This commit is contained in:
+1
-1
@@ -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
@@ -41,6 +41,7 @@ export interface Message {
|
||||
extends: Extend[];
|
||||
extensions: Extension[];
|
||||
messages: Message[];
|
||||
options: Options;
|
||||
fields: Field[];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user