Skip to content

tsoa-next / @tsoa-next/runtime / SpecResponseHandler

Type Alias: SpecResponseHandler

ts
type SpecResponseHandler = (context) => 
  | SpecResponseValue
| Promise<SpecResponseValue>;

Defined in: packages/runtime/src/decorators/specPath.ts:49

Custom handler used by SpecPath to serve spec content.

Parameters

context

SpecRequestContext

Returns

| SpecResponseValue | Promise<SpecResponseValue>

TypeScript-first OpenAPI generation, route generation, and runtime validation.