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