@typespec/protobuf 0.52.0-dev.1 → 0.52.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"packages/protobuf/CHANGELOG.md": "9c202b87535f19bb459e594abb7b74eb07aed050",
|
|
9
9
|
"packages/protobuf/LICENSE": "21071075c24599ee98254f702bcfc504cdc275a6",
|
|
10
10
|
"packages/protobuf/README.md": "15d2af2b6b4a6a2c539e55bb0f766a5d18fb2aba",
|
|
11
|
-
"packages/protobuf/lib/proto.tsp": "
|
|
11
|
+
"packages/protobuf/lib/proto.tsp": "33d1ce2288cd89890bf06b931ddbaa37bd7121d1",
|
|
12
12
|
"packages/protobuf/mocha.reporter.config.json": "fed0d708202ad79143165b3efd4de60b60716c15",
|
|
13
13
|
"packages/protobuf/package.json": "2fac7a9dad94212af6e7734fb6d2d716e37831bc",
|
|
14
14
|
"packages/protobuf/src/ast.ts": "d627704d35eae852b671b01ce54523883610f2de",
|
package/lib/proto.tsp
CHANGED
|
@@ -132,11 +132,11 @@ alias integral = int32 | int64 | uint32 | uint64 | boolean;
|
|
|
132
132
|
* The key type of a Protobuf `map` must be any integral type or `string`. The value type can be any type other than
|
|
133
133
|
* another `Map`.
|
|
134
134
|
*
|
|
135
|
-
* @template
|
|
136
|
-
* @template
|
|
135
|
+
* @template Key the key type (any integral type or string)
|
|
136
|
+
* @template Value the value type (any type other than another map)
|
|
137
137
|
*/
|
|
138
138
|
@_map
|
|
139
|
-
model Map<
|
|
139
|
+
model Map<Key extends integral | string, Value> {}
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
142
|
* Declares that a model is a Protobuf message.
|
package/package.json
CHANGED