Skip to content

Commit 775d072

Browse files
fix(query-core): fix setQueryData type inference in typed contexts
1 parent 4a5990e commit 775d072

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/query-core/src/queryClient.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export class QueryClient {
185185
NoInfer<TInferredQueryFnData> | undefined
186186
>,
187187
options?: SetDataOptions,
188-
): TInferredQueryFnData | undefined {
188+
): NoInfer<TInferredQueryFnData> | undefined {
189189
const defaultedOptions = this.defaultQueryOptions<
190190
any,
191191
any,

0 commit comments

Comments
 (0)