diff --git a/src/core/types.ts b/src/core/types.ts index e860303002..af7c9879cf 100644 --- a/src/core/types.ts +++ b/src/core/types.ts @@ -230,18 +230,18 @@ export interface MutateConfig< TVariables = unknown, TSnapshot = unknown > { - onSuccess?: (data: TResult, variables: TVariables) => Promise | void + onSuccess?: (data: TResult, variables: TVariables) => Promise | void onError?: ( error: TError, variables: TVariables, snapshotValue: TSnapshot - ) => Promise | void + ) => Promise | void onSettled?: ( data: undefined | TResult, error: TError | null, variables: TVariables, snapshotValue?: TSnapshot - ) => Promise | void + ) => Promise | void throwOnError?: boolean }