diff --git a/types/emscripten/index.d.ts b/types/emscripten/index.d.ts index 5a9bbb1444..5da83ae2b5 100644 --- a/types/emscripten/index.d.ts +++ b/types/emscripten/index.d.ts @@ -3,7 +3,12 @@ // Definitions by: Kensuke Matsuzaki // Periklis Tsirakidis // 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 { diff --git a/types/webassembly-web-api/index.d.ts b/types/webassembly-web-api/index.d.ts index e5e35c5ad5..8958b4fca7 100644 --- a/types/webassembly-web-api/index.d.ts +++ b/types/webassembly-web-api/index.d.ts @@ -2,7 +2,7 @@ // Project: https://webassembly.org/ // Definitions by: Johannes Henninger // 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;