Fix missing type argument in client streaming server handler

This commit is contained in:
Michael Lumish 2020-08-10 15:18:58 -07:00
parent bbff8cb449
commit 471c59fa27
2 changed files with 2 additions and 2 deletions

View File

@ -520,7 +520,7 @@ function generateServiceHandlerInterface(formatter: TextFormatter, serviceType:
formatter.writeLine(`${methodName}(call: grpc.ServerDuplexStream<${requestType}, ${responseType}>): void;`);
} else {
// Client streaming
formatter.writeLine(`${methodName}(call: grpc.ServerReadableStream<${requestType}>, callback: grpc.sendUnaryData<${responseType}>): void;`);
formatter.writeLine(`${methodName}(call: grpc.ServerReadableStream<${requestType}, ${responseType}>, callback: grpc.sendUnaryData<${responseType}>): void;`);
}
} else {
if (method.responseStream) {

View File

@ -1,6 +1,6 @@
{
"name": "@grpc/proto-loader",
"version": "0.6.0-pre13",
"version": "0.6.0-pre14",
"author": "Google Inc.",
"contributors": [
{