power-di
Version:
A lightweight Dependency Injection library. Using es6 and other features, remove unnecessary concepts, easy and convenient to use.
10 lines (9 loc) • 534 B
TypeScript
declare global {
namespace Reflect {
function getMetadata(metadataKey: any, target: Object): any;
function getMetadata(metadataKey: any, target: Object, propertyKey: string | symbol): any;
}
}
export declare function getReflectMetadata(metadataKey: any, target: Object, key?: string | symbol): any;
export declare function getClsTypeByDecorator(type: any, target: any, key: string | symbol): any;
export declare function getGlobalTypeByDecorator(type: any, target: any, key: string | symbol): string | symbol;