tsoa-next / @tsoa-next/runtime / Example
समारोह: उदाहरण ()
ts
function Example<T>(exampleModel, exampleLabel?): PropertyDecorator;में परिभाषित: packages/runtime/src/decorators/example.ts:7
एक मॉडल संपत्ति के लिए एक उदाहरण मान संलग्न करता है।
प्रकार पैरामीटर
T
T
पैरामीटर
exampleModel
T
उदाहरण मूल्य उत्पन्न स्कीमा मेटाडाटा में शामिल करने के लिए।
exampleLabel?
string
जब एकाधिक उदाहरण मौजूद होते हैं तो वैकल्पिक लेबल का उपयोग किया जाता है।
रिटर्न
PropertyDecorator
Contributors
No contributors
Changelog
No recent changes
