RestResponseType | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Type Alias RestResponseType<Request, Status>

    RestResponseType: (ResponsesOfRequest<Request> & { status: Status })["response"]

    Returns the JSON response type for a specific status code

    Type Parameters

    • Request extends RestRequest<any, any, any, any, any>

      Type of the Rest request (typically typeof req in an openapi handler function)

    • Status extends ResponsesOfRequest<Request>["status"] = ResponsesOfRequest<Request>["status"] & HTTPSuccessCode

      Status code. If omitted, defaults to all success codes specified in the Responses type parameter of the rest request