From 8e6888f469845a0a68dbab3047b3a6843e58da22 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Tue, 2 May 2023 13:16:13 -0700 Subject: [PATCH] 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. --- src/fallback.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fallback.ts b/src/fallback.ts index 5032a1603..0f3046e66 100644 --- a/src/fallback.ts +++ b/src/fallback.ts @@ -277,7 +277,7 @@ export class GrpcClient { ) { if (!this.authClient) { if (this.auth && 'getClient' in this.auth) { - this.authClient = await this.auth.getClient(); + this.authClient = (await this.auth.getClient()) as AuthClient; } else if (this.auth && 'getRequestHeaders' in this.auth) { this.authClient = this.auth; }