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) • 410 B
TypeScript
export declare function isClass(target: any): target is Function;
/**
* getGlobalType
* @param key class, string or symbol.
* @param prefix the prefix of type.
*/
export declare function getGlobalType(key: any, prefix?: string): string | symbol;
export declare function isExtendOf(classType: Function, superClassType: Function): boolean;
export declare function symbolString(key: string | symbol): string;