Beignet API reference
    Preparing search index...

    Type Alias ContractCacheParams<TContract>

    Normalized cache identity, not a complete set of arguments for a request.

    type ContractCacheParams<TContract extends HttpContractConfig> = {
        body?: JsonCacheValue<InferBody<TContract>>;
        headers?: Readonly<Record<string, unknown>>;
        path?: JsonCacheValue<Partial<NonNullable<InferPathParams<TContract>>>>;
        query?: JsonCacheValue<Partial<NonNullable<InferQuery<TContract>>>>;
    }

    Type Parameters

    Index
    body?: JsonCacheValue<InferBody<TContract>>
    headers?: Readonly<Record<string, unknown>>

    Only explicitly keyed headers, with lowercase names.

    path?: JsonCacheValue<Partial<NonNullable<InferPathParams<TContract>>>>
    query?: JsonCacheValue<Partial<NonNullable<InferQuery<TContract>>>>