Fixed declaration issue
This commit is contained in:
parent
87f43c18da
commit
5476ab2891
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
declare namespace WebAssembly {
|
||||
export function instantiateStreaming(stream: Promise<Response>, imports?: any) : Promise<ResultObject>;
|
||||
export function instantiateStreaming(stream: Promise<Response>, imports?: any) : Promise<WebAssembly.WebAssemblyInstantiatedSource>;
|
||||
}
|
||||
declare function postMessage(message: any): void;
|
||||
|
||||
|
@ -9,7 +9,7 @@ let initialized = false;
|
|||
|
||||
let memory: WebAssembly.Memory;
|
||||
let memory_u8: Uint8Array;
|
||||
let wasm_object: WebAssembly.ResultObject;
|
||||
let wasm_object: WebAssembly.WebAssemblyInstantiatedSource;
|
||||
|
||||
function post_status(code: string | undefined, result: boolean | string | any) {
|
||||
let data: any = {};
|
||||
|
|
Loading…
Add table
Reference in a new issue