跳到内容

tsoa-next / @tsoa-next/runtime / Middlewares

函数: 中件( )

ts
function Middlewares<T>(...mws): ClassDecorator & MethodDecorator;

定义如下: packages/runtime/src/decorators/middlewares.ts:41

将一个或多个运行时中件处理器附加到控制器或动作上.

类型参数

T

T 增编 object | CallableFunction

参数

mws

...T[]

要安装的中间软件功能或中间软件对象.

回返

ClassDecorator & MethodDecorator

贡献者

暂无相关贡献者

页面历史

暂无最近变更历史

以 TypeScript 为先的 OpenAPI 生成、路由生成与运行时验证。