You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
839 B
26 lines
839 B
|
|
declare module "puerts" { |
|
import CSharp from "csharp"; |
|
|
|
function $ref<T>(x? : T) : CSharp.$Ref<T>; |
|
|
|
function $unref<T>(x: CSharp.$Ref<T>) : T; |
|
|
|
function $set<T>(x: CSharp.$Ref<T>, val:T) : void; |
|
|
|
function $promise<T>(x: CSharp.$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) : CSharp.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; |