We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 81ef5e3 + f6d8f13 commit 6a5b521Copy full SHA for 6a5b521
packages/grpc-js/src/make-client.ts
@@ -91,6 +91,7 @@ export interface ServiceClientConstructor {
91
options?: Partial<ChannelOptions>
92
): ServiceClient;
93
service: ServiceDefinition;
94
+ serviceName: string;
95
}
96
97
/**
@@ -127,6 +128,7 @@ export function makeClientConstructor(
127
128
129
class ServiceClientImpl extends Client implements ServiceClient {
130
static service: ServiceDefinition;
131
+ static serviceName: string;
132
[methodName: string]: Function;
133
134
@@ -171,6 +173,7 @@ export function makeClientConstructor(
171
173
});
172
174
175
ServiceClientImpl.service = methods;
176
+ ServiceClientImpl.serviceName = serviceName;
177
178
return ServiceClientImpl;
179
0 commit comments