Restore 2.2 compatibility; add ambient decls

This commit is contained in:
Nathan Shively-Sanders
2019-04-10 08:41:25 -07:00
parent 38ef4cf261
commit 475d87ae6f
2 changed files with 12 additions and 2 deletions

View File

@@ -3,7 +3,12 @@
// Definitions by: Kensuke Matsuzaki <https://github.com/zakki>
// Periklis Tsirakidis <https://github.com/periklis>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.5
// TypeScript Version: 2.2
/** Other WebAssembly declarations, for compatibility with older versions of Typescript */
declare namespace WebAssembly {
interface Module { }
}
declare namespace Emscripten {
interface FileSystemType {

View File

@@ -2,7 +2,7 @@
// Project: https://webassembly.org/
// Definitions by: Johannes Henninger <https://github.com/jhenninger>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.5
// TypeScript Version: 2.2
/**
* The WebAssembly Web API defines extensions to the JavaScript API made
@@ -10,6 +10,11 @@
* 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;