Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/clients/tanstack-query/src/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export type ModelQueryHooks<Schema extends SchemaDef, Model extends GetModels<Sc
options?: ModelMutationOptions<ModelResult<Schema, Model, T>, T>,
): ModelMutationResult<ModelResult<Schema, Model, T>, T>;

useUpdateMany<T extends UpdateManyArgs<Schema, Model>[]>(
useUpdateMany<T extends UpdateManyArgs<Schema, Model>>(
options?: ModelMutationOptions<BatchResult, T>,
): ModelMutationResult<BatchResult, T>;

Expand All @@ -193,7 +193,7 @@ export type ModelQueryHooks<Schema extends SchemaDef, Model extends GetModels<Sc
options?: ModelMutationOptions<ModelResult<Schema, Model, T>, T>,
): ModelMutationResult<ModelResult<Schema, Model, T>, T>;

useDeleteMany<T extends DeleteManyArgs<Schema, Model>[]>(
useDeleteMany<T extends DeleteManyArgs<Schema, Model>>(
options?: ModelMutationOptions<BatchResult, T>,
): ModelMutationResult<BatchResult, T>;

Expand Down
2 changes: 1 addition & 1 deletion packages/clients/tanstack-query/test/react-query.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1534,7 +1534,7 @@ describe('React Query Test', () => {
});

nock(makeUrl('User', 'update'))
.delete(/.*/)
.put(/.*/)
.reply(200, () => ({ data }));

const { result: mutationResult } = renderHook(
Expand Down