@methodus/server
Version:
dynamic rpc components
8 lines (7 loc) • 460 B
TypeScript
import 'reflect-metadata';
/** the @MethodMock 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 MethodMock(mockedResult: any): (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<any>) => TypedPropertyDescriptor<any>;