diff --git a/types/index.d.ts b/types/index.d.ts index 10d72f4a42..c7129c8044 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -394,7 +394,9 @@ export function useMutation< >( mutationFn: MutationFunction, mutationOptions?: MutationOptions -): [ +): MutationResultPair + +export type MutationResultPair = [ MutateFunction, MutationResult ]