UNPKG

@methodus/server

Version:
9 lines (8 loc) 656 B
import 'reflect-metadata'; /** the model decorator registers the model with the odm * @param {Verbs} verb - the HTTP verb for the route. * @param {string} route - express route string. * @param {Function[]} middlewares - an array of middlewares to apply to this function} */ export declare function MessageWorker(name: string, exchange: string): (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<any>) => TypedPropertyDescriptor<any>; export declare function MessageWorkers(names: string[], exchange: string): (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<any>) => TypedPropertyDescriptor<any>;