diff options
Diffstat (limited to 'src/crypto/emscLoader.d.ts')
-rw-r--r-- | src/crypto/emscLoader.d.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/crypto/emscLoader.d.ts b/src/crypto/emscLoader.d.ts index f62604ee1..3ec4f4cfb 100644 --- a/src/crypto/emscLoader.d.ts +++ b/src/crypto/emscLoader.d.ts @@ -15,7 +15,7 @@ */ -declare function getLib(): EmscLib; +declare function getLib(): Promise<{ lib: EmscLib }>; /** * Signature of the function that retrieves emscripten @@ -44,6 +44,12 @@ interface EmscLib { stringToUTF8(s: string, addr: number, maxLength: number): void; + onRuntimeInitialized(f: () => void): void; + + readBinary?: (filename: string) => Promise<ArrayBuffer>; + + calledRun?: boolean; + _free(ptr: number): void; _malloc(n: number): number; |