react-query-kit 3.1.2 → 3.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -611,7 +611,7 @@ const usePost = createQuery({
611
611
 
612
612
  // `data` will be inferred as `Data | undefined`.
613
613
  // `variables` will be inferred as `Variables`.
614
- const { data } = usePost({ variables: 1 })
614
+ const { data } = usePost({ variables: { id: 1 } })
615
615
  ```
616
616
 
617
617
  You can also explicitly specify the types for `fetcher`‘s `variables` and `data`.
@@ -630,7 +630,7 @@ const usePost = createQuery<Data, Variables, Error>({
630
630
  // `data` will be inferred as `Data | undefined`.
631
631
  // `error` will be inferred as `Error | null`
632
632
  // `variables` will be inferred as `Variables`.
633
- const { data, error } = usePost({ variables: 1 })
633
+ const { data, error } = usePost({ variables: { id: 1 } })
634
634
  ```
635
635
 
636
636
  ## Type inference
@@ -103,7 +103,7 @@ export interface SuspenseInfiniteQueryHook<TFnData = unknown, TVariables = void,
103
103
  export interface CreateMutationOptions<TData = unknown, TVariables = void, TError = CompatibleError, TContext = unknown> extends UseMutationOptions<TData, TError, TVariables, TContext> {
104
104
  use?: Middleware<MutationHook<TData, TVariables, TError>>[];
105
105
  }
106
- export interface MutationHookOptions<TData, TError, TVariables, TContext> extends Omit<UseMutationOptions<TData, TVariables, TError, TContext>, 'mutationFn' | 'mutationKey'> {
106
+ export interface MutationHookOptions<TData, TError, TVariables, TContext> extends Omit<UseMutationOptions<TData, TError, TVariables, TContext>, 'mutationFn' | 'mutationKey'> {
107
107
  use?: Middleware<MutationHook<TData, TVariables, TError>>[];
108
108
  }
109
109
  export type MutationHookResult<TData = unknown, TError = CompatibleError, TVariables = void, TContext = unknown> = UseMutationResult<TData, TError, TVariables, TContext>;
@@ -154,7 +154,7 @@ export interface RouterConfig {
154
154
  [k: string]: RouterQuery<any, any, any> | RouterInfiniteQuery<any, any, any, any> | RouterMutation<any, any, any, any> | RouterConfig;
155
155
  }
156
156
  export type CreateRouter<TConfig extends RouterConfig> = {
157
- [K in keyof TConfig]: TConfig[K] extends RouterMutation<infer TFnData, infer TVariables, infer TError, infer TContext> ? ResolvedRouterMutation<TFnData, DefaultTo<TVariables, void>, DefaultTo<TError, CompatibleError>, TContext> : TConfig[K] extends RouterInfiniteQuery<infer TFnData, infer TVariables, infer TError, infer TPageParam> ? ResolvedRouterInfiniteQuery<TFnData, DefaultTo<TVariables, void>, DefaultTo<TError, CompatibleError>, DefaultTo<TPageParam, number>> : TConfig[K] extends Omit<RouterQuery<infer TFnData, infer TVariables, infer TError>, 'queryKey'> ? ResolvedRouterQuery<TFnData, DefaultTo<TVariables, void>, DefaultTo<TError, CompatibleError>> : TConfig[K] extends RouterConfig ? CreateRouter<TConfig[K]> : never;
157
+ [K in keyof TConfig]: TConfig[K] extends RouterMutation<infer TFnData, infer TVariables, infer TError, infer TContext> ? ResolvedRouterMutation<TFnData, DefaultTo<TVariables, void>, DefaultTo<TError, CompatibleError>, TContext> : TConfig[K] extends RouterInfiniteQuery<infer TFnData, infer TVariables, infer TError, infer TPageParam> ? ResolvedRouterInfiniteQuery<TFnData, DefaultTo<TVariables, void>, DefaultTo<TError, CompatibleError>, DefaultTo<TPageParam, number>> : TConfig[K] extends RouterQuery<infer TFnData, infer TVariables, infer TError> ? ResolvedRouterQuery<TFnData, DefaultTo<TVariables, void>, DefaultTo<TError, CompatibleError>> : TConfig[K] extends RouterConfig ? CreateRouter<TConfig[K]> : never;
158
158
  } & {
159
159
  getKey: () => string[];
160
160
  };
@@ -4014,7 +4014,7 @@ var drawChart = (function (exports) {
4014
4014
  </script>
4015
4015
  <script>
4016
4016
  /*<!--*/
4017
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"zip.esm.js","children":[{"name":"src","children":[{"uid":"1112-1","name":"utils.ts"},{"uid":"1112-3","name":"createBaseQuery.ts"},{"uid":"1112-5","name":"createQuery.ts"},{"uid":"1112-7","name":"createSuspenseQuery.ts"},{"uid":"1112-9","name":"createInfiniteQuery.ts"},{"uid":"1112-11","name":"createSuspenseInfiniteQuery.ts"},{"uid":"1112-13","name":"createMutation.ts"},{"uid":"1112-15","name":"router.ts"},{"uid":"1112-17","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"1112-1":{"renderedLength":894,"gzipLength":449,"brotliLength":0,"mainUid":"1112-0"},"1112-3":{"renderedLength":1162,"gzipLength":397,"brotliLength":0,"mainUid":"1112-2"},"1112-5":{"renderedLength":91,"gzipLength":87,"brotliLength":0,"mainUid":"1112-4"},"1112-7":{"renderedLength":179,"gzipLength":118,"brotliLength":0,"mainUid":"1112-6"},"1112-9":{"renderedLength":107,"gzipLength":97,"brotliLength":0,"mainUid":"1112-8"},"1112-11":{"renderedLength":203,"gzipLength":128,"brotliLength":0,"mainUid":"1112-10"},"1112-13":{"renderedLength":271,"gzipLength":168,"brotliLength":0,"mainUid":"1112-12"},"1112-15":{"renderedLength":1152,"gzipLength":385,"brotliLength":0,"mainUid":"1112-14"},"1112-17":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"1112-16"}},"nodeMetas":{"1112-0":{"id":"/src/utils.ts","moduleParts":{"zip.esm.js":"1112-1"},"imported":[{"uid":"1112-19"}],"importedBy":[{"uid":"1112-16"},{"uid":"1112-4"},{"uid":"1112-6"},{"uid":"1112-8"},{"uid":"1112-10"},{"uid":"1112-12"},{"uid":"1112-2"}]},"1112-2":{"id":"/src/createBaseQuery.ts","moduleParts":{"zip.esm.js":"1112-3"},"imported":[{"uid":"1112-0"}],"importedBy":[{"uid":"1112-4"},{"uid":"1112-6"},{"uid":"1112-8"},{"uid":"1112-10"}]},"1112-4":{"id":"/src/createQuery.ts","moduleParts":{"zip.esm.js":"1112-5"},"imported":[{"uid":"1112-2"},{"uid":"1112-0"}],"importedBy":[{"uid":"1112-16"},{"uid":"1112-14"}]},"1112-6":{"id":"/src/createSuspenseQuery.ts","moduleParts":{"zip.esm.js":"1112-7"},"imported":[{"uid":"1112-2"},{"uid":"1112-0"}],"importedBy":[{"uid":"1112-16"},{"uid":"1112-14"}]},"1112-8":{"id":"/src/createInfiniteQuery.ts","moduleParts":{"zip.esm.js":"1112-9"},"imported":[{"uid":"1112-2"},{"uid":"1112-0"}],"importedBy":[{"uid":"1112-16"},{"uid":"1112-14"}]},"1112-10":{"id":"/src/createSuspenseInfiniteQuery.ts","moduleParts":{"zip.esm.js":"1112-11"},"imported":[{"uid":"1112-2"},{"uid":"1112-0"}],"importedBy":[{"uid":"1112-16"},{"uid":"1112-14"}]},"1112-12":{"id":"/src/createMutation.ts","moduleParts":{"zip.esm.js":"1112-13"},"imported":[{"uid":"1112-0"}],"importedBy":[{"uid":"1112-16"},{"uid":"1112-14"}]},"1112-14":{"id":"/src/router.ts","moduleParts":{"zip.esm.js":"1112-15"},"imported":[{"uid":"1112-8"},{"uid":"1112-12"},{"uid":"1112-4"},{"uid":"1112-10"},{"uid":"1112-6"}],"importedBy":[{"uid":"1112-16"}]},"1112-16":{"id":"/src/index.ts","moduleParts":{"zip.esm.js":"1112-17"},"imported":[{"uid":"1112-4"},{"uid":"1112-6"},{"uid":"1112-8"},{"uid":"1112-10"},{"uid":"1112-12"},{"uid":"1112-18"},{"uid":"1112-14"},{"uid":"1112-0"}],"importedBy":[],"isEntry":true},"1112-18":{"id":"/src/types.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"1112-16"}]},"1112-19":{"id":"@tanstack/react-query","moduleParts":{},"imported":[],"importedBy":[{"uid":"1112-0"}],"isExternal":true}},"env":{"rollup":"2.77.2"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
4017
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"zip.esm.js","children":[{"name":"src","children":[{"uid":"5252-1","name":"utils.ts"},{"uid":"5252-3","name":"createBaseQuery.ts"},{"uid":"5252-5","name":"createQuery.ts"},{"uid":"5252-7","name":"createSuspenseQuery.ts"},{"uid":"5252-9","name":"createInfiniteQuery.ts"},{"uid":"5252-11","name":"createSuspenseInfiniteQuery.ts"},{"uid":"5252-13","name":"createMutation.ts"},{"uid":"5252-15","name":"router.ts"},{"uid":"5252-17","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"5252-1":{"renderedLength":894,"gzipLength":449,"brotliLength":0,"mainUid":"5252-0"},"5252-3":{"renderedLength":1162,"gzipLength":397,"brotliLength":0,"mainUid":"5252-2"},"5252-5":{"renderedLength":91,"gzipLength":87,"brotliLength":0,"mainUid":"5252-4"},"5252-7":{"renderedLength":179,"gzipLength":118,"brotliLength":0,"mainUid":"5252-6"},"5252-9":{"renderedLength":107,"gzipLength":97,"brotliLength":0,"mainUid":"5252-8"},"5252-11":{"renderedLength":203,"gzipLength":128,"brotliLength":0,"mainUid":"5252-10"},"5252-13":{"renderedLength":271,"gzipLength":168,"brotliLength":0,"mainUid":"5252-12"},"5252-15":{"renderedLength":1152,"gzipLength":385,"brotliLength":0,"mainUid":"5252-14"},"5252-17":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"5252-16"}},"nodeMetas":{"5252-0":{"id":"/src/utils.ts","moduleParts":{"zip.esm.js":"5252-1"},"imported":[{"uid":"5252-19"}],"importedBy":[{"uid":"5252-16"},{"uid":"5252-4"},{"uid":"5252-6"},{"uid":"5252-8"},{"uid":"5252-10"},{"uid":"5252-12"},{"uid":"5252-2"}]},"5252-2":{"id":"/src/createBaseQuery.ts","moduleParts":{"zip.esm.js":"5252-3"},"imported":[{"uid":"5252-0"}],"importedBy":[{"uid":"5252-4"},{"uid":"5252-6"},{"uid":"5252-8"},{"uid":"5252-10"}]},"5252-4":{"id":"/src/createQuery.ts","moduleParts":{"zip.esm.js":"5252-5"},"imported":[{"uid":"5252-2"},{"uid":"5252-0"}],"importedBy":[{"uid":"5252-16"},{"uid":"5252-14"}]},"5252-6":{"id":"/src/createSuspenseQuery.ts","moduleParts":{"zip.esm.js":"5252-7"},"imported":[{"uid":"5252-2"},{"uid":"5252-0"}],"importedBy":[{"uid":"5252-16"},{"uid":"5252-14"}]},"5252-8":{"id":"/src/createInfiniteQuery.ts","moduleParts":{"zip.esm.js":"5252-9"},"imported":[{"uid":"5252-2"},{"uid":"5252-0"}],"importedBy":[{"uid":"5252-16"},{"uid":"5252-14"}]},"5252-10":{"id":"/src/createSuspenseInfiniteQuery.ts","moduleParts":{"zip.esm.js":"5252-11"},"imported":[{"uid":"5252-2"},{"uid":"5252-0"}],"importedBy":[{"uid":"5252-16"},{"uid":"5252-14"}]},"5252-12":{"id":"/src/createMutation.ts","moduleParts":{"zip.esm.js":"5252-13"},"imported":[{"uid":"5252-0"}],"importedBy":[{"uid":"5252-16"},{"uid":"5252-14"}]},"5252-14":{"id":"/src/router.ts","moduleParts":{"zip.esm.js":"5252-15"},"imported":[{"uid":"5252-8"},{"uid":"5252-12"},{"uid":"5252-4"},{"uid":"5252-10"},{"uid":"5252-6"}],"importedBy":[{"uid":"5252-16"}]},"5252-16":{"id":"/src/index.ts","moduleParts":{"zip.esm.js":"5252-17"},"imported":[{"uid":"5252-4"},{"uid":"5252-6"},{"uid":"5252-8"},{"uid":"5252-10"},{"uid":"5252-12"},{"uid":"5252-18"},{"uid":"5252-14"},{"uid":"5252-0"}],"importedBy":[],"isEntry":true},"5252-18":{"id":"/src/types.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"5252-16"}]},"5252-19":{"id":"@tanstack/react-query","moduleParts":{},"imported":[],"importedBy":[{"uid":"5252-0"}],"isExternal":true}},"env":{"rollup":"2.77.2"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
4018
4018
 
4019
4019
  const run = () => {
4020
4020
  const width = window.innerWidth;
package/build/stats.json CHANGED
@@ -10,39 +10,39 @@
10
10
  "name": "src",
11
11
  "children": [
12
12
  {
13
- "uid": "1112-21",
13
+ "uid": "5252-21",
14
14
  "name": "utils.ts"
15
15
  },
16
16
  {
17
- "uid": "1112-23",
17
+ "uid": "5252-23",
18
18
  "name": "createBaseQuery.ts"
19
19
  },
20
20
  {
21
- "uid": "1112-25",
21
+ "uid": "5252-25",
22
22
  "name": "createQuery.ts"
23
23
  },
24
24
  {
25
- "uid": "1112-27",
25
+ "uid": "5252-27",
26
26
  "name": "createSuspenseQuery.ts"
27
27
  },
28
28
  {
29
- "uid": "1112-29",
29
+ "uid": "5252-29",
30
30
  "name": "createInfiniteQuery.ts"
31
31
  },
32
32
  {
33
- "uid": "1112-31",
33
+ "uid": "5252-31",
34
34
  "name": "createSuspenseInfiniteQuery.ts"
35
35
  },
36
36
  {
37
- "uid": "1112-33",
37
+ "uid": "5252-33",
38
38
  "name": "createMutation.ts"
39
39
  },
40
40
  {
41
- "uid": "1112-35",
41
+ "uid": "5252-35",
42
42
  "name": "router.ts"
43
43
  },
44
44
  {
45
- "uid": "1112-37",
45
+ "uid": "5252-37",
46
46
  "name": "index.ts"
47
47
  }
48
48
  ]
@@ -53,307 +53,307 @@
53
53
  "isRoot": true
54
54
  },
55
55
  "nodeParts": {
56
- "1112-21": {
56
+ "5252-21": {
57
57
  "renderedLength": 894,
58
58
  "gzipLength": 449,
59
59
  "brotliLength": 0,
60
- "mainUid": "1112-20"
60
+ "mainUid": "5252-20"
61
61
  },
62
- "1112-23": {
62
+ "5252-23": {
63
63
  "renderedLength": 1162,
64
64
  "gzipLength": 397,
65
65
  "brotliLength": 0,
66
- "mainUid": "1112-22"
66
+ "mainUid": "5252-22"
67
67
  },
68
- "1112-25": {
68
+ "5252-25": {
69
69
  "renderedLength": 91,
70
70
  "gzipLength": 87,
71
71
  "brotliLength": 0,
72
- "mainUid": "1112-24"
72
+ "mainUid": "5252-24"
73
73
  },
74
- "1112-27": {
74
+ "5252-27": {
75
75
  "renderedLength": 179,
76
76
  "gzipLength": 118,
77
77
  "brotliLength": 0,
78
- "mainUid": "1112-26"
78
+ "mainUid": "5252-26"
79
79
  },
80
- "1112-29": {
80
+ "5252-29": {
81
81
  "renderedLength": 107,
82
82
  "gzipLength": 97,
83
83
  "brotliLength": 0,
84
- "mainUid": "1112-28"
84
+ "mainUid": "5252-28"
85
85
  },
86
- "1112-31": {
86
+ "5252-31": {
87
87
  "renderedLength": 203,
88
88
  "gzipLength": 128,
89
89
  "brotliLength": 0,
90
- "mainUid": "1112-30"
90
+ "mainUid": "5252-30"
91
91
  },
92
- "1112-33": {
92
+ "5252-33": {
93
93
  "renderedLength": 271,
94
94
  "gzipLength": 168,
95
95
  "brotliLength": 0,
96
- "mainUid": "1112-32"
96
+ "mainUid": "5252-32"
97
97
  },
98
- "1112-35": {
98
+ "5252-35": {
99
99
  "renderedLength": 1152,
100
100
  "gzipLength": 385,
101
101
  "brotliLength": 0,
102
- "mainUid": "1112-34"
102
+ "mainUid": "5252-34"
103
103
  },
104
- "1112-37": {
104
+ "5252-37": {
105
105
  "renderedLength": 0,
106
106
  "gzipLength": 0,
107
107
  "brotliLength": 0,
108
- "mainUid": "1112-36"
108
+ "mainUid": "5252-36"
109
109
  }
110
110
  },
111
111
  "nodeMetas": {
112
- "1112-20": {
112
+ "5252-20": {
113
113
  "id": "/src/utils.ts",
114
114
  "moduleParts": {
115
- "zip.esm.js": "1112-21"
115
+ "zip.esm.js": "5252-21"
116
116
  },
117
117
  "imported": [
118
118
  {
119
- "uid": "1112-39"
119
+ "uid": "5252-39"
120
120
  }
121
121
  ],
122
122
  "importedBy": [
123
123
  {
124
- "uid": "1112-36"
124
+ "uid": "5252-36"
125
125
  },
126
126
  {
127
- "uid": "1112-24"
127
+ "uid": "5252-24"
128
128
  },
129
129
  {
130
- "uid": "1112-26"
130
+ "uid": "5252-26"
131
131
  },
132
132
  {
133
- "uid": "1112-28"
133
+ "uid": "5252-28"
134
134
  },
135
135
  {
136
- "uid": "1112-30"
136
+ "uid": "5252-30"
137
137
  },
138
138
  {
139
- "uid": "1112-32"
139
+ "uid": "5252-32"
140
140
  },
141
141
  {
142
- "uid": "1112-22"
142
+ "uid": "5252-22"
143
143
  }
144
144
  ]
145
145
  },
146
- "1112-22": {
146
+ "5252-22": {
147
147
  "id": "/src/createBaseQuery.ts",
148
148
  "moduleParts": {
149
- "zip.esm.js": "1112-23"
149
+ "zip.esm.js": "5252-23"
150
150
  },
151
151
  "imported": [
152
152
  {
153
- "uid": "1112-20"
153
+ "uid": "5252-20"
154
154
  }
155
155
  ],
156
156
  "importedBy": [
157
157
  {
158
- "uid": "1112-24"
158
+ "uid": "5252-24"
159
159
  },
160
160
  {
161
- "uid": "1112-26"
161
+ "uid": "5252-26"
162
162
  },
163
163
  {
164
- "uid": "1112-28"
164
+ "uid": "5252-28"
165
165
  },
166
166
  {
167
- "uid": "1112-30"
167
+ "uid": "5252-30"
168
168
  }
169
169
  ]
170
170
  },
171
- "1112-24": {
171
+ "5252-24": {
172
172
  "id": "/src/createQuery.ts",
173
173
  "moduleParts": {
174
- "zip.esm.js": "1112-25"
174
+ "zip.esm.js": "5252-25"
175
175
  },
176
176
  "imported": [
177
177
  {
178
- "uid": "1112-22"
178
+ "uid": "5252-22"
179
179
  },
180
180
  {
181
- "uid": "1112-20"
181
+ "uid": "5252-20"
182
182
  }
183
183
  ],
184
184
  "importedBy": [
185
185
  {
186
- "uid": "1112-36"
186
+ "uid": "5252-36"
187
187
  },
188
188
  {
189
- "uid": "1112-34"
189
+ "uid": "5252-34"
190
190
  }
191
191
  ]
192
192
  },
193
- "1112-26": {
193
+ "5252-26": {
194
194
  "id": "/src/createSuspenseQuery.ts",
195
195
  "moduleParts": {
196
- "zip.esm.js": "1112-27"
196
+ "zip.esm.js": "5252-27"
197
197
  },
198
198
  "imported": [
199
199
  {
200
- "uid": "1112-22"
200
+ "uid": "5252-22"
201
201
  },
202
202
  {
203
- "uid": "1112-20"
203
+ "uid": "5252-20"
204
204
  }
205
205
  ],
206
206
  "importedBy": [
207
207
  {
208
- "uid": "1112-36"
208
+ "uid": "5252-36"
209
209
  },
210
210
  {
211
- "uid": "1112-34"
211
+ "uid": "5252-34"
212
212
  }
213
213
  ]
214
214
  },
215
- "1112-28": {
215
+ "5252-28": {
216
216
  "id": "/src/createInfiniteQuery.ts",
217
217
  "moduleParts": {
218
- "zip.esm.js": "1112-29"
218
+ "zip.esm.js": "5252-29"
219
219
  },
220
220
  "imported": [
221
221
  {
222
- "uid": "1112-22"
222
+ "uid": "5252-22"
223
223
  },
224
224
  {
225
- "uid": "1112-20"
225
+ "uid": "5252-20"
226
226
  }
227
227
  ],
228
228
  "importedBy": [
229
229
  {
230
- "uid": "1112-36"
230
+ "uid": "5252-36"
231
231
  },
232
232
  {
233
- "uid": "1112-34"
233
+ "uid": "5252-34"
234
234
  }
235
235
  ]
236
236
  },
237
- "1112-30": {
237
+ "5252-30": {
238
238
  "id": "/src/createSuspenseInfiniteQuery.ts",
239
239
  "moduleParts": {
240
- "zip.esm.js": "1112-31"
240
+ "zip.esm.js": "5252-31"
241
241
  },
242
242
  "imported": [
243
243
  {
244
- "uid": "1112-22"
244
+ "uid": "5252-22"
245
245
  },
246
246
  {
247
- "uid": "1112-20"
247
+ "uid": "5252-20"
248
248
  }
249
249
  ],
250
250
  "importedBy": [
251
251
  {
252
- "uid": "1112-36"
252
+ "uid": "5252-36"
253
253
  },
254
254
  {
255
- "uid": "1112-34"
255
+ "uid": "5252-34"
256
256
  }
257
257
  ]
258
258
  },
259
- "1112-32": {
259
+ "5252-32": {
260
260
  "id": "/src/createMutation.ts",
261
261
  "moduleParts": {
262
- "zip.esm.js": "1112-33"
262
+ "zip.esm.js": "5252-33"
263
263
  },
264
264
  "imported": [
265
265
  {
266
- "uid": "1112-20"
266
+ "uid": "5252-20"
267
267
  }
268
268
  ],
269
269
  "importedBy": [
270
270
  {
271
- "uid": "1112-36"
271
+ "uid": "5252-36"
272
272
  },
273
273
  {
274
- "uid": "1112-34"
274
+ "uid": "5252-34"
275
275
  }
276
276
  ]
277
277
  },
278
- "1112-34": {
278
+ "5252-34": {
279
279
  "id": "/src/router.ts",
280
280
  "moduleParts": {
281
- "zip.esm.js": "1112-35"
281
+ "zip.esm.js": "5252-35"
282
282
  },
283
283
  "imported": [
284
284
  {
285
- "uid": "1112-28"
285
+ "uid": "5252-28"
286
286
  },
287
287
  {
288
- "uid": "1112-32"
288
+ "uid": "5252-32"
289
289
  },
290
290
  {
291
- "uid": "1112-24"
291
+ "uid": "5252-24"
292
292
  },
293
293
  {
294
- "uid": "1112-30"
294
+ "uid": "5252-30"
295
295
  },
296
296
  {
297
- "uid": "1112-26"
297
+ "uid": "5252-26"
298
298
  }
299
299
  ],
300
300
  "importedBy": [
301
301
  {
302
- "uid": "1112-36"
302
+ "uid": "5252-36"
303
303
  }
304
304
  ]
305
305
  },
306
- "1112-36": {
306
+ "5252-36": {
307
307
  "id": "/src/index.ts",
308
308
  "moduleParts": {
309
- "zip.esm.js": "1112-37"
309
+ "zip.esm.js": "5252-37"
310
310
  },
311
311
  "imported": [
312
312
  {
313
- "uid": "1112-24"
313
+ "uid": "5252-24"
314
314
  },
315
315
  {
316
- "uid": "1112-26"
316
+ "uid": "5252-26"
317
317
  },
318
318
  {
319
- "uid": "1112-28"
319
+ "uid": "5252-28"
320
320
  },
321
321
  {
322
- "uid": "1112-30"
322
+ "uid": "5252-30"
323
323
  },
324
324
  {
325
- "uid": "1112-32"
325
+ "uid": "5252-32"
326
326
  },
327
327
  {
328
- "uid": "1112-38"
328
+ "uid": "5252-38"
329
329
  },
330
330
  {
331
- "uid": "1112-34"
331
+ "uid": "5252-34"
332
332
  },
333
333
  {
334
- "uid": "1112-20"
334
+ "uid": "5252-20"
335
335
  }
336
336
  ],
337
337
  "importedBy": [],
338
338
  "isEntry": true
339
339
  },
340
- "1112-38": {
340
+ "5252-38": {
341
341
  "id": "/src/types.ts",
342
342
  "moduleParts": {},
343
343
  "imported": [],
344
344
  "importedBy": [
345
345
  {
346
- "uid": "1112-36"
346
+ "uid": "5252-36"
347
347
  }
348
348
  ]
349
349
  },
350
- "1112-39": {
350
+ "5252-39": {
351
351
  "id": "@tanstack/react-query",
352
352
  "moduleParts": {},
353
353
  "imported": [],
354
354
  "importedBy": [
355
355
  {
356
- "uid": "1112-20"
356
+ "uid": "5252-20"
357
357
  }
358
358
  ],
359
359
  "isExternal": true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-query-kit",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "description": "🕊️ A toolkit for ReactQuery that make ReactQuery hooks more reusable and typesafe",
5
5
  "author": "liaoliao666",
6
6
  "repository": "liaoliao666/react-query-kit",
package/src/types.ts CHANGED
@@ -450,7 +450,7 @@ export interface CreateMutationOptions<
450
450
 
451
451
  export interface MutationHookOptions<TData, TError, TVariables, TContext>
452
452
  extends Omit<
453
- UseMutationOptions<TData, TVariables, TError, TContext>,
453
+ UseMutationOptions<TData, TError, TVariables, TContext>,
454
454
  'mutationFn' | 'mutationKey'
455
455
  > {
456
456
  use?: Middleware<MutationHook<TData, TVariables, TError>>[]
@@ -731,9 +731,10 @@ export type CreateRouter<TConfig extends RouterConfig> = {
731
731
  DefaultTo<TError, CompatibleError>,
732
732
  DefaultTo<TPageParam, number>
733
733
  >
734
- : TConfig[K] extends Omit<
735
- RouterQuery<infer TFnData, infer TVariables, infer TError>,
736
- 'queryKey'
734
+ : TConfig[K] extends RouterQuery<
735
+ infer TFnData,
736
+ infer TVariables,
737
+ infer TError
737
738
  >
738
739
  ? ResolvedRouterQuery<
739
740
  TFnData,