-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.d.ts
76 lines (66 loc) · 2.31 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
type Constructable = new (...args: any[]) => {};
export class SupertypeLogger {
context: any;
granularLevels: any;
level: any;
log (level : number, ...data : any[]);
fatal (...data : any[]) : void;
error (...data : any[]) : void;
warn (...data : any[]) : void;
info (...data : any[]) : void;
debug (...data : any[]) : void;
trace (...data : any[]) : void;
setLevel(number) : void;
startContext(context : any) : void;
setContextProps(context : any) : void;
clearContextProps(context : any) : void;
createChildLogger(context : any) : SupertypeLogger;
prettyPrint(level : number, ...data : any[]) : string;
// for overriding
sendToLog: Function;
formatDateTime: Function;
}
export class SupertypeSession {
logger: SupertypeLogger
__dictionary__ : any;
getClasses() : any;
}
export class amorphicStatic extends SupertypeSession {}
export class Supertype {
constructor ()
amorphic : SupertypeSession;
// Class members (static)
static amorphicCreateProperty(prop: String, defineProperty: Object)
static amorphicGetProperties(includeVirtualProperties?: boolean)
static amorphicProperties: any;
static amorphicChildClasses: Array<Constructable>;
static amorphicParentClass: Constructable;
static amorphicFromJSON(json: string)
static amorphicClassName : string;
static amorphicStatic : SupertypeSession;
// Object members
__id__: String;
amorphicLeaveEmpty: boolean;
amorphicToJSON(callback?: Function): string;
amorphicGetPropertyDefinition(propertyName: string);
amorphicGetPropertyValues(propertyName: string);
amorphicGetPropertyDescriptions(propertyName: string);
// Deprecated legacy naming
static createProperty(prop: String, defineProperty: Object)
static getProperties()
static __children__: Array<Constructable>;
static __parent__: Constructable;
toJSONString()
__props__()
__descriptions__(prop: string)
__values__(prop: string)
__template__ : any
amorphicClass : any
amorphicGetClassName () : string
static fromJSON (json: string, idPrefix?: string)
static inject(injector: any)
createCopy(callback : Function);
copyProperties(obj: any);
}
export function property(props?: Object);
export function supertypeClass(target?: any);