Currently, if you wish to use **WebAssembly**, you need to include `lib.dom.d.ts`, even in cases where that’s incorrect (e.g.: **NodeJS** or **Deno**). The solution would be to move non‑web‑specific[^1] **WebAssembly** types to a new `lib.wasm.d.ts` file. [^1]: Web‑specific **WebAssembly** types are those defined in <https://webassembly.github.io/spec/web-api/index.html>. Non‑web‑specific **WebAssembly** types are those defined in <https://webassembly.github.io/spec/js-api/index.html>. --- See also: <https://github.com/microsoft/TSJS-lib-generator/issues/211>