modelenceMutation<Defined in: index.ts:75 Creates mutation options for use with TanStack Query’s useMutation hook.T
>(methodName
,defaultArgs
):object
Type Parameter | Default type | Description |
---|---|---|
T | unknown | The expected return type of the mutation |
Parameter | Type | Description |
---|---|---|
methodName | string | The name of the method to mutate |
defaultArgs | Args | Optional default arguments to merge with mutation variables |
object
Mutation options object for TanStack Query’s useMutation
Name | Type | Defined in |
---|---|---|
mutationFn() | (variables ) => Promise <T > | index.ts:80 |