DefinitelyTyped/types/webassembly-web-api/index.d.ts
Nathan Shively-Sanders 0ab77b678f
Cleanup for DOM update in typescript@next (#34632)
* 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
2019-04-10 10:31:02 -07:00

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>;
}