@micro.ts/core
Version:
Microservice framework with Typescript
14 lines (13 loc) • 561 B
TypeScript
import { GlobalMetadata } from "./types/ControllerMetadataTypes";
import { MethodControllerOptions } from "./types/MethodMetadataTypes";
/**
* Get the global metadata object
*/
export declare function getGlobalMetadata(): GlobalMetadata;
export declare function printMetadata(): void;
/**
* Return metadata for the method and the controller that contains it
* @param ctor Controller constructor passed as a value
* @param methodName Name of the method
*/
export declare function getHandlerMetadata(ctor: any, methodName: string): MethodControllerOptions;