Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MutateOptions

interface MutateOptions <TData = unknown, TError = unknown, TVariables = void, TContext = unknown> {
onError?: (
error: TError,
variables: TVariables,
context: TContext | undefined,
) => void
;
onSettled?: (
data: TData | undefined,
error: TError | null,
variables: TVariables,
context: TContext | undefined,
) => void
;
onSuccess?: (
data: TData,
variables: TVariables,
context: TContext,
) => void
;
}

§Type Parameters

§
TData = unknown
[src]
§
TError = unknown
[src]
§
TVariables = void
[src]
§
TContext = unknown
[src]

§Properties

§
onError?: (error: TError, variables: TVariables, context: TContext | undefined) => void
[src]
§
onSettled?: (data: TData | undefined, error: TError | null, variables: TVariables, context: TContext | undefined) => void
[src]
§
onSuccess?: (data: TData, variables: TVariables, context: TContext) => void
[src]