Skip to content

Commit 4289fc4

Browse files
authored
Declare generated ServiceClient inheritance
1 parent 1abd78e commit 4289fc4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/grpc-js/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ export {
254254

255255
export {
256256
GrpcObject,
257+
ServiceClient,
257258
ServiceClientConstructor,
258259
ProtobufTypeDefinition,
259260
} from './make-client';

packages/proto-loader/bin/proto-loader-gen-types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ function generateServiceClientInterface(formatter: TextFormatter, serviceType: P
551551
if (options.includeComments) {
552552
formatComment(formatter, serviceType.comment, serviceType.options);
553553
}
554-
formatter.writeLine(`export interface ${serviceType.name}Client extends grpc.Client {`);
554+
formatter.writeLine(`export interface ${serviceType.name}Client extends grpc.ServiceClient {`);
555555
formatter.indent();
556556
for (const methodName of Object.keys(serviceType.methods).sort()) {
557557
const method = serviceType.methods[methodName];

0 commit comments

Comments
 (0)