typescript-class-helpers
Version:
Usefull helper to have in your typescript project
17 lines (16 loc) • 1.06 kB
TypeScript
export declare function getClassName(target: Function): string | undefined;
export declare function getFromObject(o: Object): any;
/**
* PLEASE PROVIDE NAME AS TYPED STRING, NOT VARIABLE
* Decorator requred for production mode
* @param name Name of class
*/
export declare function CLASS__NS__NAME(className: string): any;
export declare function CLASS__NS__setName(target: Function, className: string): void;
export declare function CLASS__NS__getClassNameFromObjInstanceOrClassFn(target: any): string | undefined;
export declare function CLASS__NS__setClassName(target: Function, className: string): void;
export declare function CLASS__NS__getBy(className: string | Function): Function;
export declare function CLASS__NS__getFromObject(o: Object): Function | undefined;
export declare function CLASS__NS__getName(target: Function): string | undefined;
export declare function CLASS__NS__getNameFromObject(o: Object): string | undefined;
export declare const CLASS__NS__getMethodsNames: (classOrClassInstance: any, allMethodsNames?: any[]) => string[];