File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -472,7 +472,7 @@ export interface MutationOptions<
472472 mutationFn ?: MutationFunction < TData , TVariables >
473473 mutationKey ?: MutationKey
474474 variables ?: TVariables
475- onMutate ?: ( variables : TVariables ) => Promise < TContext > | TContext | undefined
475+ onMutate ?: ( variables : TVariables ) => Promise < TContext > | Promise < undefined > | TContext | undefined
476476 onSuccess ?: (
477477 data : TData ,
478478 variables : TVariables ,
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ export interface UseMutationOptions<
7575 TContext = unknown
7676> {
7777 mutationKey ?: string | unknown [ ]
78- onMutate ?: ( variables : TVariables ) => Promise < TContext > | TContext | undefined
78+ onMutate ?: ( variables : TVariables ) => Promise < TContext > | Promise < undefined > | TContext | undefined
7979 onSuccess ?: (
8080 data : TData ,
8181 variables : TVariables ,
You can’t perform that action at this time.
0 commit comments