Webroute

@webroute/oasType aliases

ParseResponses

ParseResponses<T, TRef>: T extends oas31.ResponsesObject ? keyof T extends infer $Key ? $Key extends `2${string}` ? ParseResponse<T[$Key], TRef> : never : never : never

Parses a responses object of an OAS definition.

Type Parameters

Type Parameter
T extends oas31.ResponsesObject | undefined
TRef extends oas31.ComponentsObject

On this page