diff --git a/docs/getting_started/typescript.md b/docs/getting_started/typescript.md index 6813206e00..ee799f844a 100644 --- a/docs/getting_started/typescript.md +++ b/docs/getting_started/typescript.md @@ -154,6 +154,7 @@ Following are the currently allowed settings and their default values in Deno: "generateCpuProfile": "profile.cpuprofile", "jsx": "react", "jsxFactory": "React.createElement", + "jsxFragmentFactory": "React.Fragment", "lib": [], "noFallthroughCasesInSwitch": false, "noImplicitAny": true, diff --git a/docs/getting_started/webassembly.md b/docs/getting_started/webassembly.md index 613be2fcd2..b7ca6ee407 100644 --- a/docs/getting_started/webassembly.md +++ b/docs/getting_started/webassembly.md @@ -4,7 +4,7 @@ Deno can execute [WebAssembly](https://webassembly.org/) binaries. -```js +```ts const wasmCode = new Uint8Array([ 0, 97, 115, 109, 1, 0, 0, 0, 1, 133, 128, 128, 128, 0, 1, 96, 0, 1, 127, 3, 130, 128, 128, 128, 0, 1, 0, 4, 132, 128, 128, 128, 0, 1, 112, 0, 0, @@ -15,5 +15,6 @@ const wasmCode = new Uint8Array([ ]); const wasmModule = new WebAssembly.Module(wasmCode); const wasmInstance = new WebAssembly.Instance(wasmModule); +const main = wasmInstance.exports.main as CallableFunction console.log(wasmInstance.exports.main().toString()); ```