'GoogleAuth<JSONClient> | undefined' is not assignable to type 'JSONClient | undefined'. #1374
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Did the recent update break something?
Types of property 'authClient' are incompatible.
11:08:51 Type 'GoogleAuth | undefined' is not assignable to type 'JSONClient | undefined'.
11:08:51 node_modules/@google-cloud/common/build/src/util.d.ts(42,18): error TS2430: Interface 'MakeAuthenticatedRequestFactoryConfig' incorrectly extends interface 'GoogleAuthOptions'.
11:08:51 Types of property 'authClient' are incompatible.
11:08:51 Type 'GoogleAuth | undefined' is not assignable to type 'JSONClient | undefined'.
11:08:51 Type 'GoogleAuth' is not assignable to type 'JSONClient | undefined'.
11:08:51 Type 'GoogleAuth' is missing the following properties from type 'JWT': createScoped, getRequestMetadataAsync, fetchIdToken, hasUserScopes
Environment details
OS: CentOS
Node.js version: NodeJS_v12.18.2
@google-cloud/common version: 3.9.0
Steps to reproduce
A simple npm run build causes this.
The text was updated successfully, but these errors were encountered: