Skip to content

tsoa-next / @tsoa-next/runtime / fetchMiddlewares

Function: fetchMiddlewares()

ts
function fetchMiddlewares<T>(target): T[];

Defined in: packages/runtime/src/decorators/middlewares.ts:55

Returns middleware metadata previously attached with Middlewares.

Type Parameters

T

T extends object | CallableFunction

Parameters

target

MiddlewareTarget

The controller class or method function to inspect.

Returns

T[]

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