Skip to content

Commit 8e6888f

Browse files
fix: compilation error in fallback.ts (#1444)
The compilation failed for me on a clean install, possibly because of some auth library update. We don't really care about the real type of the returned auth client, so a simple type cast should be good.
1 parent 6d17ba2 commit 8e6888f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fallback.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ export class GrpcClient {
277277
) {
278278
if (!this.authClient) {
279279
if (this.auth && 'getClient' in this.auth) {
280-
this.authClient = await this.auth.getClient();
280+
this.authClient = (await this.auth.getClient()) as AuthClient;
281281
} else if (this.auth && 'getRequestHeaders' in this.auth) {
282282
this.authClient = this.auth;
283283
}

0 commit comments

Comments
 (0)