Skip to content

Commit ba30553

Browse files
committed
fix: typings of Mutation
1 parent e51060f commit ba30553

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/dry-singers-serve.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"mobx-tanstack-query": patch
3+
---
4+
5+
fixed typings of `mutationFn` (second argument)

src/mutation.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export type MobxMutationInvalidateQueriesOptions =
5959

6060
export type MutationFn<TData = unknown, TVariables = unknown> = (
6161
variables: TVariables,
62-
options: { signal: AbortSignal },
62+
context: MutationFunctionContext,
6363
) => Promise<TData>;
6464

6565
/**

0 commit comments

Comments
 (0)