跳到内容

tsoa-next / tsoa-next / SpecResponseHandler

类型别名: SpecResponse Handler

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

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

自定义处理器 SpecPath 以服务光谱内容。

参数

context

SpecRequestContext

回返

| SpecResponseValue | Promise<SpecResponseValue>

贡献者

暂无相关贡献者

页面历史

暂无最近变更历史

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