Extracts the success response type from an EndpointBuilder.
EndpointBuilder
.responses()
.returns(schema)
null
void
An EndpointBuilder instance type.
type Resp = EndpointResponse<typeof ListTodosEndpoint>;// ^? TodoResponse[]type Resp = EndpointResponse<typeof DeleteTodoEndpoint>;// ^? void Copy
type Resp = EndpointResponse<typeof ListTodosEndpoint>;// ^? TodoResponse[]type Resp = EndpointResponse<typeof DeleteTodoEndpoint>;// ^? void
Extracts the success response type from an
EndpointBuilder..responses()was used, returns the body type of the first declared 2xx status code (200 → 201 → 202 → 204)..returns(schema)was used, returns the inferred schema type.nullresponse schema (e.g. for 204) maps tovoid.