跳到内容

tsoa-next / tsoa-next / SpecPathGateHandler

类型别名: SpecPathGateHandler

ts
type SpecPathGateHandler = (context) => boolean | Promise<boolean>;

定义如下: packages/runtime/src/decorators/specPath.ts:51

使用的门处理器 SpecPath 以决定一项请求是否可以收到具体答复。

参数

context

SpecRequestContext

回返

boolean | Promise<boolean>

贡献者

暂无相关贡献者

页面历史

暂无最近变更历史

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