mirror of
https://github.com/TanStack/query.git
synced 2026-11-16 22:50:20 +00:00
* docs(angular-query-experimental): add JSDoc across the package and generate reference docs with TypeDoc * docs(angular-query-experimental): address CodeRabbit review comments on JSDoc accuracy * docs(angular-query-experimental): use 'changes' instead of 'narrows' for select's effect on TData
962 B
962 B
| id | title |
|---|---|
| CreateMutationOptions | CreateMutationOptions |
Defined in: types.ts:224
The options accepted by injectMutation. Same as MutationObserverOptions from
@tanstack/query-core, minus the internal _defaulted flag.
Extends
OmitKeyof<MutationObserverOptions<TData,TError,TVariables,TOnMutateResult>,"_defaulted">
Type Parameters
TData
TData = unknown
The type your mutation function resolves to.
TError
TError = DefaultError
The type of errors your mutation function may throw.
TVariables
TVariables = void
The type of the variable passed to mutate/mutateAsync.
TOnMutateResult
TOnMutateResult = unknown
The type returned by onMutate, passed to onSuccess/onError/onSettled as
their onMutateResult parameter — useful for optimistic-update rollback data.