Skip to content

Commit

Permalink
Fix auto-generated service definition
Browse files Browse the repository at this point in the history
relate to issue grpc#1766
  • Loading branch information
EduardoLaranjo authored May 4, 2021
1 parent bf2e5cb commit 4c767ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/proto-loader/bin/proto-loader-gen-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ function generateServiceHandlerInterface(formatter: TextFormatter, serviceType:
}

function generateServiceDefinitionInterface(formatter: TextFormatter, serviceType: Protobuf.Service) {
formatter.writeLine(`export interface ${serviceType.name}Definition {`);
formatter.writeLine(`export interface ${serviceType.name}Definition extends grpc.ServiceDefinition {`);
formatter.indent();
for (const methodName of Object.keys(serviceType.methods).sort()) {
const method = serviceType.methods[methodName];
Expand Down

0 comments on commit 4c767ca

Please sign in to comment.