Skip to content

Commit

Permalink
fix(types): use grpc call credentials type (#790)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Fenster <[email protected]>
  • Loading branch information
JustinBeckwith and alexander-fenster committed Apr 13, 2020
1 parent 3f8c6f7 commit a11d90e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/grpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ export interface ClientStubOptions {
protocol?: string;
servicePath?: string;
port?: number;
// TODO: use sslCreds?: grpc.ChannelCredentials;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
sslCreds?: any;
sslCreds?: grpc.ChannelCredentials;
[index: string]: string | number | undefined | {};
}

Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@ export {
PaginationResponse,
} from './clientInterface';

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

0 comments on commit a11d90e

Please sign in to comment.