type CreateMutationResult<TData, TError, TVariables, TOnMutateResult, TState> = BaseMutationNarrowing<TData, TError, TVariables, TOnMutateResult> & MapToSignals<OmitKeyof<TState, keyof BaseMutationNarrowing, "safely">>;Defined in: packages/angular-query-experimental/src/types.ts:416
The result of injectMutation. Based on CreateBaseMutationResult, but value fields are exposed as a Signal — read them with mutation.data(), not mutation.data — while function fields (mutate, mutateAsync, reset) are called directly, unchanged. isSuccess/isError/isPending/isIdle are BaseMutationNarrowing type-guard methods rather than plain booleans.
TData = unknown
The type your mutation function resolves to.
TError = DefaultError
The type of errors your mutation function may throw.
TVariables = unknown
The type of the variable passed to mutate/mutateAsync.
TOnMutateResult = unknown
The type returned by onMutate, passed to onSuccess/onError/onSettled as their onMutateResult parameter — useful for optimistic-update rollback data.
TState = CreateStatusBasedMutationResult<CreateBaseMutationResult["status"], TData, TError, TVariables, TOnMutateResult>