From 5de7214fa242931abc52890112ee12e3e7ff36e7 Mon Sep 17 00:00:00 2001 From: Pepijn Senders Date: Wed, 17 Jun 2020 18:45:24 +0200 Subject: [PATCH] chore(queryCache): add parameter for makeQueryCache to types (#588) --- types/index.d.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index dc8fe0c0f7..9ed86c30c8 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -316,7 +316,7 @@ export function useInfiniteQuery< config?: InfiniteQueryOptions ): InfiniteQueryResult -export type DefinedQueryKeyPart = +export type DefinedQueryKeyPart = | string | object | boolean @@ -706,10 +706,17 @@ export interface QueryCache { export const queryCache: QueryCache +export interface MakeQueryCacheOptions { + frozen?: boolean + defaultConfig?: BaseQueryOptions +} + /** * a factory that creates a new query cache */ -export function makeQueryCache(): QueryCache +export function makeQueryCache( + makeQueryCacheOptions: MakeQueryCacheOptions +): QueryCache /** * A hook that uses the query cache context