Beignet API reference
    Preparing search index...

    Type Alias ContractUseMutationOptions<TContract, TProvidedHeaders>

    ContractUseMutationOptions: Omit<
        MutationOptions<
            InferSuccessResponse<TContract>,
            InferEndpointContractError<TContract>,
            EndpointCallArgs<TContract, TProvidedHeaders>,
            unknown,
        >,
        "mutationFn",
    >

    Options accepted by ReactQueryContractHelper.mutationOptions(...).

    TanStack mutationFn is generated from the contract endpoint, so callers pass the normal TanStack mutation lifecycle options.

    Type Parameters