grpc-code-gen
Advanced tools
Comparing version 4.3.2 to 4.3.3
@@ -392,3 +392,3 @@ "use strict"; | ||
callback?: (err: Error, response: ${responseType}, metadata: Metadata) => void; | ||
}): Promise<${responseType}>; | ||
}): Promise<{ response:${responseType}, error?: Error }>; | ||
`; | ||
@@ -484,3 +484,3 @@ }); | ||
return new Promise((resolve, reject) => { | ||
wrapper.call(this, request, metadata, options, (err, res, metadataRes) => { | ||
wrapper.call(this, request, metadata, options, (err: Error | null, res: any, metadataRes: Metadata) => { | ||
if (err) { | ||
@@ -487,0 +487,0 @@ reject(err); |
{ | ||
"name": "grpc-code-gen", | ||
"version": "4.3.2", | ||
"version": "4.3.3", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/yunkeCN/grpc-code-gen.git", |
@@ -470,3 +470,3 @@ import * as fs from 'fs-extra'; | ||
callback?: (err: Error, response: ${responseType}, metadata: Metadata) => void; | ||
}): Promise<${responseType}>; | ||
}): Promise<{ response:${responseType}, error?: Error }>; | ||
` | ||
@@ -563,3 +563,3 @@ }); | ||
return new Promise((resolve, reject) => { | ||
wrapper.call(this, request, metadata, options, (err, res, metadataRes) => { | ||
wrapper.call(this, request, metadata, options, (err: Error | null, res: any, metadataRes: Metadata) => { | ||
if (err) { | ||
@@ -566,0 +566,0 @@ reject(err); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
136024