rest-vir - v2.2.0
    Preparing search index...

    Type Alias EndpointResponseHeadersType<Endpoint, Method, Status>

    EndpointResponseHeadersType: NonNullable<
        NonNullable<
            Extract<
                Extract<Endpoint, EndpointDefinition>["requests"][Extract<
                    Method,
                    DefinableHttpMethod,
                >],
                EndpointMethodDefinition,
            >["responses"],
        >[Extract<Status, HttpStatus>],
    >["requiredResponseHeaders"] extends infer RequiredHeaders extends
        BaseRequiredResponseHeaders
        ? IsNever<RequiredHeaders> extends true
            ? DefaultResponseHeadersType
            : {
                [HeaderKey in keyof RequiredHeaders]: ExtractRequiredHeaderValue<
                    RequiredHeaders[HeaderKey],
                >
            } & DefaultResponseHeadersType
        : DefaultResponseHeadersType

    Extract an endpoint's response headers type, including required response headers (if any).

    Type Parameters