Skip to main content
WASI.prototype.getImportObject - node__wasi.d.ts - Node documentation
method WASI.prototype.getImportObject

Usage in Deno

```typescript import { WASI } from "node:node__wasi.d.ts"; ```
WASI.prototype.getImportObject(): object
Return an import object that can be passed to `WebAssembly.instantiate()` if no other WASM imports are needed beyond those provided by WASI. If version `unstable` was passed into the constructor it will return: ```js { wasi_unstable: wasi.wasiImport } ``` If version `preview1` was passed into the constructor or no version was specified it will return: ```js { wasi_snapshot_preview1: wasi.wasiImport } ```

Return Type

object