Beignet API reference
    Preparing search index...

    Type Alias ContractUseQueryOptions<TContract, TProvidedHeaders, TData>

    ContractUseQueryOptions: EndpointQueryArgs<TContract, TProvidedHeaders> & {
        key?: readonly unknown[];
    } & ContractQueryOptionsBase<TContract, TData>

    Options accepted by ReactQueryContractHelper.queryOptions(...).

    TanStack queryKey and queryFn are generated from the contract. Pass key to override the generated query key while keeping the generated query function. Pass select to narrow the observed data type; the generated queryFn still returns the raw contract response.

    Type Parameters