Beignet API reference
    Preparing search index...

    Type Alias InferSuccessResponse<TContract>

    InferSuccessResponse: TContract["responses"] extends Partial<
        Record<number, StandardSchema | null>,
    >
        ? Any2xxKey<TContract["responses"]> extends infer K
            ? K extends keyof TContract["responses"]
                ? InferResponseType<TContract["responses"][K]>
                : unknown
            : unknown
        : unknown

    Infer success response body from a contract.

    This is the union of all declared 2xx response schemas.

    Type Parameters