@typespec/protobuf 0.44.0-dev.3 → 0.44.0-dev.4

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.
@@ -1,3 +1,3 @@
1
1
  {
2
- "nonCachedDurationMs": 10871.88509999984
2
+ "nonCachedDurationMs": 10589.664800000144
3
3
  }
@@ -8,7 +8,7 @@
8
8
  "packages/protobuf/CHANGELOG.md": "007c623ef30f7f0175483ef13224a453469934a5",
9
9
  "packages/protobuf/LICENSE": "21071075c24599ee98254f702bcfc504cdc275a6",
10
10
  "packages/protobuf/README.md": "5143cc0445ca5d50a5b1bda93ea2cc5370943bd9",
11
- "packages/protobuf/lib/proto.tsp": "59268bc4989a59470b022efaf3f30666d498133f",
11
+ "packages/protobuf/lib/proto.tsp": "46336059ff52fe8bd7cd60326d8d70b712673851",
12
12
  "packages/protobuf/package.json": "33be3858267cfebead4a29192ef87783eb32be6e",
13
13
  "packages/protobuf/src/ast.ts": "c43456893db4c92d309a159d245ac57da1be0d1d",
14
14
  "packages/protobuf/src/index.ts": "0dd36fbcc216cc478f19af2bb5d04d970eb8bfc1",
@@ -63,7 +63,7 @@
63
63
  "packages/protobuf/test/scenarios/reserved field collisions/input/main.tsp": "4046c2b39f56feeb16095bbe6d392155fed60987",
64
64
  "packages/protobuf/test/scenarios/reserved fields/input/main.tsp": "2bfbc9e169d971ca0e83c9ef010cbf069845efb4",
65
65
  "packages/protobuf/test/scenarios/reserved fields/output/@typespec/protobuf/main.proto": "478af2f97cc7d1c792f78dc2f0ab5e3bda991a0c",
66
- "packages/protobuf/test/scenarios/simple-error/diagnostics.txt": "60083878a162ef6da939ad5d837a950c72b0c02a",
66
+ "packages/protobuf/test/scenarios/simple-error/diagnostics.txt": "82fb428dd13d08f89d2c3945beaa97f8825a76e4",
67
67
  "packages/protobuf/test/scenarios/simple-error/input/main.tsp": "f4b649246a16d9a1f2c0910e9ace1d20ac5a2a27",
68
68
  "packages/protobuf/test/scenarios/simple-no-service/input/main.tsp": "c70c2060d1309413558127805c08e066911ce478",
69
69
  "packages/protobuf/test/scenarios/simple-no-service/output/@typespec/protobuf/com/azure/Test.proto": "2aeda7b5782b6deb105172c9f84474181c3b359f",
package/lib/proto.tsp CHANGED
@@ -143,7 +143,7 @@ model Map<K extends integral | string, V> {}
143
143
  *
144
144
  * This decorator will force the emitter to check and emit a model.
145
145
  */
146
- extern dec message(target: object);
146
+ extern dec message(target: {});
147
147
 
148
148
  /**
149
149
  * Defines the field index of a model property for conversion to a Protobuf
@@ -211,7 +211,7 @@ extern dec field(target: TypeSpec.Reflection.ModelProperty, index: uint32);
211
211
  * }
212
212
  * ```
213
213
  */
214
- extern dec reserve(target: object, ...reservations: (string | [uint32, uint32] | uint32)[]);
214
+ extern dec reserve(target: {}, ...reservations: (string | [uint32, uint32] | uint32)[]);
215
215
 
216
216
  /**
217
217
  * Declares that a TypeSpec interface constitutes a Protobuf service. The contents of the interface will be converted to
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typespec/protobuf",
3
- "version": "0.44.0-dev.3",
3
+ "version": "0.44.0-dev.4",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec library and emitter for Protobuf (gRPC)",
6
6
  "homepage": "https://github.com/Microsoft/typespec",
@@ -3,4 +3,4 @@
3
3
  /test/main.tsp:14:5 - error @typespec/protobuf/field-index: field index 19000 falls within the implementation-reserved range of 19000-19999 inclusive
4
4
  /test/main.tsp:15:5 - error @typespec/protobuf/field-index: field index 19123 falls within the implementation-reserved range of 19000-19999 inclusive
5
5
  /test/main.tsp:16:5 - error @typespec/protobuf/field-index: field index 19999 falls within the implementation-reserved range of 19000-19999 inclusive
6
- /test/main.tsp:21:1 - error decorator-wrong-target: Cannot apply @message decorator to Test.Test since it is not assignable to object
6
+ /test/main.tsp:21:1 - error decorator-wrong-target: Cannot apply @message decorator to Test.Test since it is not assignable to {}