forked from extremeprog-com/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
18 lines (13 loc) · 716 Bytes
/
index.d.ts
File metadata and controls
18 lines (13 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
declare module "core-os";
interface Core {
FireEvent (Request: CoreRequest<string>, success?: Function, fail?: Function) :void;
FireRequest(Event : CoreEvent<string>) :void;
CatchEvent (...args: any): CoreEvent<string>;
CatchRequest(...args: any): CoreRequest<string>;
detachObject (Object: Object): Object;
processObject(Object: Object): Object;
}
declare interface CoreRequest<request> { _request: request, [key: string]: any}
declare interface CoreRequestConstructor<request> { new (parameters?: any): CoreRequest<request>; }
declare interface CoreEvent<event> { _event : event, [key: string]: any}
declare interface CoreEventConstructor<event> { new (parameters?: any): CoreEvent<event>; }