Skip to content

Commit

Permalink
New MutationResultPair type (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
justincy authored Jul 2, 2020
1 parent 04a1346 commit 7597c1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,9 @@ export function useMutation<
>(
mutationFn: MutationFunction<TResult, TVariables, TError, TSnapshot>,
mutationOptions?: MutationOptions<TResult, TVariables, TError, TSnapshot>
): [
): MutationResultPair<TResult, TVariables, TError>

export type MutationResultPair<TResult, TVariables, TError> = [
MutateFunction<TResult, TVariables, TError>,
MutationResult<TResult, TError>
]
Expand Down

0 comments on commit 7597c1f

Please sign in to comment.