File tree 1 file changed +12
-20
lines changed
packages/openapi-react-query/src
1 file changed +12
-20
lines changed Original file line number Diff line number Diff line change @@ -100,36 +100,28 @@ export type UseInfiniteQueryMethod<Paths extends Record<string, Record<HttpMetho
100
100
Path extends PathsWithMethod < Paths , Method > ,
101
101
Init extends MaybeOptionalInit < Paths [ Path ] , Method > ,
102
102
Response extends Required < FetchResponse < Paths [ Path ] [ Method ] , Init , Media > > ,
103
+ Options extends Omit <
104
+ UseInfiniteQueryOptions <
105
+ Response [ "data" ] ,
106
+ Response [ "error" ] ,
107
+ Response [ "data" ] ,
108
+ number ,
109
+ QueryKey < Paths , Method , Path >
110
+ > ,
111
+ "queryKey" | "queryFn"
112
+ >
103
113
> (
104
114
method : Method ,
105
115
url : Path ,
106
116
...[ init , options , queryClient ] : RequiredKeysOf < Init > extends never
107
117
? [
108
118
InitWithUnknowns < Init > ?,
109
- Omit <
110
- UseInfiniteQueryOptions <
111
- Response [ "data" ] ,
112
- Response [ "error" ] ,
113
- Response [ "data" ] ,
114
- number ,
115
- QueryKey < Paths , Method , Path >
116
- > ,
117
- "queryKey" | "queryFn"
118
- > ?,
119
+ Options ?,
119
120
QueryClient ?,
120
121
]
121
122
: [
122
123
InitWithUnknowns < Init > ,
123
- Omit <
124
- UseInfiniteQueryOptions <
125
- Response [ "data" ] ,
126
- Response [ "error" ] ,
127
- Response [ "data" ] ,
128
- number ,
129
- QueryKey < Paths , Method , Path >
130
- > ,
131
- "queryKey" | "queryFn"
132
- > ?,
124
+ Options ?,
133
125
QueryClient ?,
134
126
]
135
127
) => UseInfiniteQueryResult < InfiniteData < Response [ "data" ] > , Response [ "error" ] > ;
You can’t perform that action at this time.
0 commit comments