We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f2b4ef commit c15d00aCopy full SHA for c15d00a
1 file changed
src/lib/react-query.ts
@@ -2,6 +2,7 @@ import { createAsyncStoragePersister } from '@tanstack/query-async-storage-persi
2
import {
3
DefaultOptions,
4
QueryClient,
5
+ UseInfiniteQueryOptions,
6
UseMutationOptions,
7
UseQueryOptions,
8
} from '@tanstack/react-query'
@@ -36,6 +37,11 @@ export type QueryConfig<QueryFnType extends (...args: any) => any> = Omit<
36
37
'queryKey' | 'queryFn'
38
>
39
40
+export type InfiniteQueryConfig<QueryFnType extends (...args: any) => any> = Omit<
41
+ UseInfiniteQueryOptions<ExtractFnReturnType<QueryFnType>>,
42
+ 'queryKey' | 'queryFn' | 'getNextPageParam'
43
+>
44
+
45
export type MutationConfig<MutationFnType extends (...args: any) => any> = UseMutationOptions<
46
ExtractFnReturnType<MutationFnType>,
47
AxiosError,
0 commit comments