typescript-class-helpers
Version:
Usefull helper to have in your typescript project
17 lines • 814 B
TypeScript
// @ts-nocheck
import { Models } from './models';
export declare namespace CLASSNAME {
function getClassConfig(target: Function, configs?: Models.ClassConfig[], callerTarget?: Function): Models.ClassConfig[];
/**
* PLEASE PROVIDE NAME AS TYPED STRING, NOT VARIABLE
* Decorator requred for production mode
* @param name Name of class
*/
function CLASSNAME(className: string, options?: Models.CLASSNAMEOptions): any;
function getClassName(target: Function, production?: boolean): any;
function getObjectIndexPropertyValue(obj: any): string;
function getClassFamilyByClassName(className: string): string;
function getObjectClassFamily(obj: any): string;
function getObjectIndexValue(obj: any): any;
function getClassBy(className: string | Function): Function;
}