tsoa-next / @tsoa-next/runtime / Example
函数: 示例( )
ts
function Example<T>(exampleModel, exampleLabel?): PropertyDecorator;定义如下: packages/runtime/src/decorators/example.ts:7
将示例值附加到模型属性上。
类型参数
T
T
参数
exampleModel
T
在生成的 schema 元数据中包含的示例值 。
exampleLabel?
string
多个实例出现时使用的可选标签 。
回返
PropertyDecorator
贡献者
暂无相关贡献者
页面历史
暂无最近变更历史
