From d470ee0ef43509554f1d3416ce1fe70434c3161f Mon Sep 17 00:00:00 2001 From: Maxim De Clercq Date: Wed, 28 Jul 2021 12:30:32 +0200 Subject: [PATCH] fix(types): add missing resetStore option for onLogout --- test/fixture-local-state/plugins/apollo-config.js | 2 +- types/index.d.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/test/fixture-local-state/plugins/apollo-config.js b/test/fixture-local-state/plugins/apollo-config.js index 41669030..9e5f4ecf 100644 --- a/test/fixture-local-state/plugins/apollo-config.js +++ b/test/fixture-local-state/plugins/apollo-config.js @@ -17,7 +17,7 @@ export default function (ctx) { } } }, - onCacheInit: cache => { + onCacheInit: (cache) => { const data = { connected: false } diff --git a/types/index.d.ts b/types/index.d.ts index b78473f1..94d096df 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -15,6 +15,9 @@ export interface ApolloHelpers { cookieAttributes?: number | CookieAttributes, skipResetStore?: boolean ): Promise; - onLogout(apolloClient?: ApolloClient): Promise; + onLogout( + apolloClient?: ApolloClient, + skipResetStore?: boolean + ): Promise; getToken(tokenName?: string): string; }