0
Fork 0
mirror of https://github.com/TanStack/query.git synced 2026-11-18 19:33:22 +00:00
query/docs/framework/solid/reference/interfaces/MutationOptions.md
Wonsuk Choi de8ab4db3e
docs(solid-query): add JSDoc and generate reference docs with TypeDoc (#11369)
* docs(solid-query): add JSDoc across the package

* docs(solid-query): generate reference docs with TypeDoc

* docs(config): register solid-query TypeDoc reference pages

* docs(solid-query): correct inaccurate JSDoc statements flagged in review
2026-09-03 10:19:23 +09:00

759 B

id title
MutationOptions MutationOptions

Defined in: types.ts:241

The options accepted by useMutation and mutationOptions.

Extends

  • OmitKeyof<MutationObserverOptions<TData, TError, TVariables, TOnMutateResult>, "_defaulted">

Type Parameters

TData

TData = unknown

The type your mutationFn resolves to.

TError

TError = DefaultError

The type of errors your mutationFn may throw.

TVariables

TVariables = void

The type of the variables your mutationFn accepts.

TOnMutateResult

TOnMutateResult = unknown

The type returned by onMutate, passed on to onSuccess/onError/onSettled.