tsoa-next / @tsoa-next/runtime / Middlewares
समारोह: Middleware()
ts
function Middlewares<T>(...mws): ClassDecorator & MethodDecorator;में परिभाषित: packages/runtime/src/decorators/middlewares.ts:41
एक या अधिक रनटाइम मिडलवेयर हैंडलर को एक नियंत्रक या कार्रवाई में संलग्न करता है।
प्रकार पैरामीटर
T
T * object \ CallableFunction
पैरामीटर
mws
...T[]
मिडलवेयर फ़ंक्शन या मिडलवेयर ऑब्जेक्ट्स को स्थापित करने के लिए।
रिटर्न
ClassDecorator & MethodDecorator
Contributors
No contributors
Changelog
No recent changes
