Skip to content

Commit fad9fcd

Browse files
committed
fix(useMutation): use Exclude instead of Omit to override mutate to return the correct union type
1 parent 9c38dd4 commit fad9fcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/react/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export type UseBaseMutationResult<
124124
TError = unknown,
125125
TVariables = unknown,
126126
TContext = unknown
127-
> = Omit<
127+
> = Exclude<
128128
MutationObserverResult<TData, TError, TVariables, TContext>,
129129
'mutate'
130130
> & {

0 commit comments

Comments
 (0)