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

    Type Alias RequestContentTypesOf<D, P, M>

    RequestContentTypesOf: ResolveOperation<D, P, M> extends {
        requestBody: { content: infer C };
    }
        ? C extends Record<string, unknown>
            ? string extends keyof C ? string : Extract<keyof C, string>
            : string
        : string

    Extract the content-type keys declared on a request body's content map for the given path and method. Runtime documents widen to string.

    Type Parameters

    • D
    • P extends string
    • M extends string