schema-components - v3.7.0
    Preparing search index...

    Type Alias ResponseContentTypesOf<D, P, M, S>

    ResponseContentTypesOf: ResolveOperation<D, P, M> extends { responses: infer R }
        ? R extends Record<string, unknown>
            ? S extends keyof R
                ? R[S] extends { content: infer C }
                    ? C extends Record<string, unknown>
                        ? string extends keyof C ? string : Extract<keyof C, string>
                        : string
                    : string
                : string
            : string
        : string

    Extract the content-type keys declared on a response entry's content map for the given path, method, and status. Runtime documents widen to string.

    Type Parameters

    • D
    • P extends string
    • M extends string
    • S extends string