From 7abb2b3132ee84adbc6db441b87c31af58594ede Mon Sep 17 00:00:00 2001 From: Brian Hann Date: Mon, 18 Jan 2021 09:23:31 -0600 Subject: [PATCH] Make getAuth() defnition allow Promise getAuth() in code is used with async/await but this definition not handle promises --- types.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types.d.ts b/types.d.ts index 0c50299..8b8f635 100644 --- a/types.d.ts +++ b/types.d.ts @@ -35,7 +35,7 @@ declare module 'vue-cli-plugin-apollo/graphql-client' { // apollo-link-state options clientState?: ClientStateConfig // Function returning Authorization header token - getAuth?: (tokenName: string) => string | void + getAuth?: (tokenName: string) => Promise | string | void // Local Schema typeDefs?: string | string[] | DocumentNode | DocumentNode[] // Local Resolvers