type CreateMutateFunction<TData, TError, TVariables, TOnMutateResult> = (...args) => void;Defined in: packages/angular-query-experimental/src/types.ts:245
The type of mutate, as returned by injectMutation. Forwards the variables (and an optional per-call onSuccess/onError/onSettled) to the underlying mutate call. Fire-and-forget — errors are surfaced through the mutation result, not thrown.
TData = unknown
The type your mutation function resolves to.
TError = DefaultError
The type of errors your mutation function may throw.
TVariables = void
The type of the variable passed to mutate.
TOnMutateResult = unknown
The type returned by onMutate, passed to onSuccess/onError/onSettled as their onMutateResult parameter — useful for optimistic-update rollback data.
...Parameters<MutateFunction<TData, TError, TVariables, TOnMutateResult>>
void