mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Caching class names
This commit is contained in:
22
utils/types.d.ts
vendored
22
utils/types.d.ts
vendored
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user