// Type definitions for the WebAssembly Web API v1 // Project: https://webassembly.org/ // Definitions by: Johannes Henninger // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 /** * The WebAssembly Web API defines extensions to the JavaScript API made * available specifically in web browsers. See [WebAssembly Web * API](https://www.w3.org/TR/wasm-web-api-1/) for more information. */ declare namespace WebAssembly { /// Other WebAssembly declarations, for compatibility with older versions of Typescript // tslint:disable-next-line no-empty-interface interface Module { } // tslint:disable-next-line no-empty-interface interface Instance { } interface ResultObject { module: Module; instance: Instance; } function compileStreaming(source: Response | Promise): Promise; function instantiateStreaming(source: Response | Promise, importObject?: object): Promise; }