-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdotnet.d.ts
61 lines (58 loc) · 2.63 KB
/
dotnet.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
declare module ':glue/dotnet' {
export namespace dotnet {
function withDiagnosticTracing(enable: boolean): GlueRuntimeInstance;
function withApplicationArgumentsFromQuery(): GlueRuntimeInstance;
function withConfig(config: MonoConfig): GlueRuntimeInstance;
function withConfigSrc(configSrc: string): GlueRuntimeInstance;
function withApplicationArguments(...args: string[]): GlueRuntimeInstance;
function withEnvironmentVariable(name: string, value: string): GlueRuntimeInstance;
function withEnvironmentVariables(variables: {
[i: string]: string;
}): GlueRuntimeInstance;
function withVirtualWorkingDirectory(vfsPath: string): GlueRuntimeInstance;
function withResourceLoader(loadBootResource?: LoadBootResourceCallback): GlueRuntimeInstance;
function create(): Promise<GlueRuntime>;
function invokeMethodAsync(assemblyName: string, methodName: string, ...args: any[]): Promise<any>;
function invokeMethod(assemblyName: string, methodName: string, ...args: any[]): any;
function findJSObjectReference(id: number): JSObjectReference;
function createJSObjectReference(obj: any): JSObjectReference;
function disposeJSObjectReference(obj: JSObjectReference): void;
export function withDiagnosticTracing(arg0: boolean) {
throw new Error('Function not implemented.');
}
}
interface JSObjectReference {
invokeMethodAsync(methodName: string, ...args: any[]): Promise<any>;
invokeMethod(methodName: string, ...args: any[]): any;
dispose(): void;
}
interface GlueRuntimeInstance {
withDiagnosticTracing(enable: boolean): GlueRuntimeInstance;
withApplicationArgumentsFromQuery(): GlueRuntimeInstance;
withConfig(config: MonoConfig): GlueRuntimeInstance;
withConfigSrc(configSrc: string): GlueRuntimeInstance;
withApplicationArguments(...args: string[]): GlueRuntimeInstance;
withEnvironmentVariable(name: string, value: string): GlueRuntimeInstance;
withEnvironmentVariables(variables: {
[i: string]: string;
}): GlueRuntimeInstance;
withVirtualWorkingDirectory(vfsPath: string): GlueRuntimeInstance;
withResourceLoader(loadBootResource?: LoadBootResourceCallback): GlueRuntimeInstance;
create(): Promise<GlueRuntime>;
}
interface GlueRuntime {
dispose(): void;
getAssemblyExports(assemblyName: string): Promise<any>;
INTERNAL: any;
Module: any;
runtimeId: number;
runtimeBuildInfo: {
productVersion: string;
gitHash: string;
buildConfiguration: string;
wasmEnableThreads: boolean;
wasmEnableSIMD: boolean;
wasmEnableExceptionHandling: boolean;
};
}
}