rtti & refactoring

This commit is contained in:
dcode
2019-04-06 20:17:48 +02:00
parent a9e4813798
commit e1070cee86
266 changed files with 23295 additions and 33925 deletions

View File

@ -1485,13 +1485,6 @@ interface TypedPropertyDescriptor<T> {
set?(value: T): void;
}
/** Annotates an element as a program global. */
declare function global(
target: any,
propertyKey: string,
descriptor: TypedPropertyDescriptor<any>
): TypedPropertyDescriptor<any> | void;
/** Annotates a method as a binary operator overload for the specified `token`. */
declare function operator(token:
"[]" | "[]=" | "{}" | "{}=" | "==" | "!=" | ">" | "<" | "<=" | ">=" |
@ -1526,6 +1519,9 @@ declare namespace operator {
) => TypedPropertyDescriptor<any> | void;
}
/** Annotates an element as a program global. */
declare function global(...args: any[]): any;
/** Annotates a class as being unmanaged with limited capabilities. */
declare function unmanaged(constructor: Function): void;