mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Cleanup for DOM update in typescript@next 1. awesomeplete: Switch off of now-removed type name. 2. emscripten: Remove dependency on webassembly-js-api now that 3.5 has it in the DOM. 3. webassembly-web-api: Same I'll remove webassembly-js-api in a separate PR since it's no longer needed. * Restore 2.2 compatibility; add ambient decls
26 lines
1.0 KiB
TypeScript
26 lines
1.0 KiB
TypeScript
// Type definitions for the WebAssembly Web API v1
|
|
// Project: https://webassembly.org/
|
|
// Definitions by: Johannes Henninger <https://github.com/jhenninger>
|
|
// 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<Response>): Promise<Module>;
|
|
function instantiateStreaming(source: Response | Promise<Response>, importObject?: object): Promise<ResultObject>;
|
|
}
|