Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/mono/wasm/runtime/dotnet.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ declare global {
function getDotnetRuntime(runtimeId: number): RuntimeAPI | undefined;
}

declare const dotnet: ModuleAPI["dotnet"];
declare const exit: ModuleAPI["exit"];
/**
* Span class is JS wrapper for System.Span<T>. This view doesn't own the memory, nor pin the underlying array.
* It's ideal to be used on call from C# with the buffer pinned there or with unmanaged memory.
Expand Down Expand Up @@ -315,4 +317,4 @@ declare class ManagedObject implements IDisposable {
toString(): string;
}

export { ArraySegment, AssetBehaviours, AssetEntry, CreateDotnetRuntimeType, DotnetModuleConfig, EmscriptenModule, IMemoryView, LoadingResource, ManagedError, ManagedObject, MemoryViewType, ModuleAPI, MonoConfig, NativePointer, ResourceRequest, RuntimeAPI, Span, createDotnetRuntime as default };
export { ArraySegment, AssetBehaviours, AssetEntry, CreateDotnetRuntimeType, DotnetModuleConfig, EmscriptenModule, IMemoryView, LoadingResource, ManagedError, ManagedObject, MemoryViewType, ModuleAPI, MonoConfig, NativePointer, ResourceRequest, RuntimeAPI, Span, createDotnetRuntime as default, dotnet, exit };
5 changes: 4 additions & 1 deletion src/mono/wasm/runtime/export-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ declare global {

export default createDotnetRuntime;

declare const dotnet: ModuleAPI["dotnet"];
declare const exit: ModuleAPI["exit"];

/**
* Span class is JS wrapper for System.Span<T>. This view doesn't own the memory, nor pin the underlying array.
Expand Down Expand Up @@ -71,6 +73,7 @@ export {
EmscriptenModule, NativePointer,
RuntimeAPI, ModuleAPI, DotnetModuleConfig, CreateDotnetRuntimeType, MonoConfig,
AssetEntry, ResourceRequest, LoadingResource, AssetBehaviours,
IMemoryView, MemoryViewType, ManagedObject, ManagedError, Span, ArraySegment
IMemoryView, MemoryViewType, ManagedObject, ManagedError, Span, ArraySegment,
dotnet, exit
};