diff --git a/bind-imgui.d.ts b/bind-imgui.d.ts index 20a4806..1843f98 100644 --- a/bind-imgui.d.ts +++ b/bind-imgui.d.ts @@ -1,10 +1,10 @@ import * as Emscripten from "./emscripten"; // emcc -s MODULARIZE=0 -// declare const Module: ImGuiModule; export default Module; +// declare const Module: Module; export default Module; // emcc -s MODULARIZE=1 -export default function Module(Module?: Partial): Promise; +export default function Module(Module?: Partial): Module; export interface mallinfo { arena: number; diff --git a/bind-imgui.d.ts b/bind-imgui.d.ts index 20a4806..1843f98 100644 --- a/bind-imgui.d.ts +++ b/bind-imgui.d.ts @@ -1,10 +1,10 @@ import * as Emscripten from "./emscripten"; // emcc -s MODULARIZE=0 -// declare const Module: ImGuiModule; export default Module; +// declare const Module: Module; export default Module; // emcc -s MODULARIZE=1 -export default function Module(Module?: Partial): Promise; +export default function Module(Module?: Partial): Module; export interface mallinfo { arena: number; diff --git a/emscripten.d.ts b/emscripten.d.ts index 08f2cd9..9d09df6 100644 --- a/emscripten.d.ts +++ b/emscripten.d.ts @@ -47,6 +47,8 @@ } export interface EmscriptenModule { + then(callback: (value: T) => void): void; + ENVIRONMENT?: "WEB" | "WORKER" | "NODE" | "SHELL"; "arguments": any[];