Type Alias RestResponseType<Request, Status>
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
Returns the JSON response type for a specific status code