File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
1010 MutationFilters ,
1111} from './utils'
1212import type {
13+ QueryClientConfig ,
1314 DefaultOptions ,
1415 FetchInfiniteQueryOptions ,
1516 FetchQueryOptions ,
@@ -40,12 +41,6 @@ import { CancelOptions } from './types'
4041
4142// TYPES
4243
43- interface QueryClientConfig {
44- queryCache ?: QueryCache
45- mutationCache ?: MutationCache
46- defaultOptions ?: DefaultOptions
47- }
48-
4944interface QueryDefaults {
5045 queryKey : QueryKey
5146 defaultOptions : QueryOptions < any , any , any >
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import type { MutationState } from './mutation'
22import type { QueryBehavior , Query } from './query'
33import type { RetryValue , RetryDelayValue } from './retryer'
44import type { QueryFilters } from './utils'
5+ import type { QueryCache } from './queryCache'
6+ import type { MutationCache } from './mutationCache'
57
68export type QueryKey = string | readonly unknown [ ]
79export type EnsuredQueryKey < T extends QueryKey > = T extends string
@@ -669,6 +671,12 @@ export type MutationObserverResult<
669671 | MutationObserverErrorResult < TData , TError , TVariables , TContext >
670672 | MutationObserverSuccessResult < TData , TError , TVariables , TContext >
671673
674+ export interface QueryClientConfig {
675+ queryCache ?: QueryCache
676+ mutationCache ?: MutationCache
677+ defaultOptions ?: DefaultOptions
678+ }
679+
672680export interface DefaultOptions < TError = unknown > {
673681 queries ?: QueryObserverOptions < unknown , TError >
674682 mutations ?: MutationObserverOptions < unknown , TError , unknown , unknown >
You can’t perform that action at this time.
0 commit comments