type CreateMutateAsyncFunction<TData, TError, TVariables, TOnMutateResult> = MutateFunction<TData, TError, TVariables, TOnMutateResult>;Defined in: packages/angular-query-experimental/src/types.ts:266
The type of mutateAsync, as returned by injectMutation. Similar to CreateMutateFunction, but returns a promise which can be awaited.
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 mutateAsync.
TOnMutateResult = unknown
The type returned by onMutate, passed to onSuccess/onError/onSettled as their onMutateResult parameter — useful for optimistic-update rollback data.