import { WebAssembly } from "https://deno.land/x/deno@v1.28.3/cli/tsc/dts/lib.deno.shared_globals.d.ts";
const { instantiateStreaming } = WebAssembly;
The WebAssembly.instantiateStreaming()
function compiles and instantiates a
WebAssembly module directly from a streamed underlying source. This is the most
efficient, optimized way to load wasm code.
Returns
Promise<WebAssemblyInstantiatedSource>