Skip to content

Commit 8244e1d

Browse files
fix(types): use grpc call credentials type (#790)
Co-authored-by: Alexander Fenster <[email protected]>
1 parent 657673e commit 8244e1d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/packages/google-gax/src/grpc.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ export interface ClientStubOptions {
6464
protocol?: string;
6565
servicePath?: string;
6666
port?: number;
67-
// TODO: use sslCreds?: grpc.ChannelCredentials;
68-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
69-
sslCreds?: any;
67+
sslCreds?: grpc.ChannelCredentials;
7068
[index: string]: string | number | undefined | {};
7169
}
7270

packages/packages/google-gax/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,4 @@ export {
102102
PaginationResponse,
103103
} from './clientInterface';
104104

105-
export {ServiceError} from '@grpc/grpc-js';
105+
export {ServiceError, ChannelCredentials} from '@grpc/grpc-js';

0 commit comments

Comments
 (0)