-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpuerts.d.ts
More file actions
executable file
·25 lines (14 loc) · 841 Bytes
/
puerts.d.ts
File metadata and controls
executable file
·25 lines (14 loc) · 841 Bytes
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
declare module "puerts" {
import {$Ref, $Task, System} from "csharp"
function $ref<T>(x? : T) : $Ref<T>;
function $unref<T>(x: $Ref<T>) : T;
function $set<T>(x: $Ref<T>, val:T) : void;
function $promise<T>(x: $Task<T>) : Promise<T>;
function $generic<T extends new (...args:any[]) => any> (genericType :T, ...genericArguments: (new (...args:any[]) => any)[]) : T;
function $typeof(x : new (...args:any[]) => any) : System.Type;
function $extension(c : Function, e: Function) : void;
function on(eventType: string, listener: Function, prepend?: boolean) : void;
function off(eventType: string, listener: Function) : void;
function emit(eventType: string, ...args:any[]) : boolean;
}
declare function require(name: string): any;