ts-proto 2.11.1 → 2.11.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.
@@ -37,7 +37,7 @@ function generateNestjsServiceController(ctx, fileDesc, sourceInfo, serviceDesc)
37
37
  // Return observable for interface only configuration, passing returnObservable=true and methodDesc.serverStreaming=true
38
38
  let returns;
39
39
  if ((0, types_1.isEmptyType)(methodDesc.outputType)) {
40
- returns = (0, ts_poet_1.code) `void`;
40
+ returns = (0, ts_poet_1.code) `void | Promise<void>`;
41
41
  }
42
42
  else if (options.returnObservable || methodDesc.serverStreaming) {
43
43
  returns = (0, ts_poet_1.code) `${(0, types_1.responseObservable)(ctx, methodDesc)}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-proto",
3
- "version": "2.11.1",
3
+ "version": "2.11.2",
4
4
  "description": "",
5
5
  "main": "build/src/plugin.js",
6
6
  "repository": "github:stephenh/ts-proto",