Caching class names

This commit is contained in:
vakrilov
2015-05-21 18:00:53 +03:00
parent d03e20d958
commit 2c75ba989d
2 changed files with 73 additions and 15 deletions

22
utils/types.d.ts vendored
View File

@@ -61,4 +61,26 @@
* Return an array of strings with the name of all classes.
*/
export function getBaseClasses(object): Array<string>;
/**
* A function that gets the ClassInfo for an object.
* @param object The object for which the ClassInfo will be get.
* Returns a ClassInfo for the object.
*/
export function getClassInfo(object: Object): ClassInfo;
/**
* A Class holding information about a class
*/
export class ClassInfo {
/**
* Gets the name of the class.
*/
name: string;
/**
* Gets the ClassInfo for the base class of the current info.
*/
baseClassInfo: ClassInfo;
}
}