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

    Type Alias StatusKeysOf<D, P, M>

    StatusKeysOf: ResolveOperation<D, P, M> extends { responses: infer R }
        ? R extends Record<string, unknown>
            ? string extends keyof R ? string : Extract<keyof R, string>
            : string
        : string

    Extract the status-code keys declared by an operation's responses map. Includes class wildcards (2XX, etc.) and the default sentinel; runtime documents widen to string.

    Type Parameters

    • D
    • P extends string
    • M extends string