Uses: @esmbly/transformer-jsdoc
, @esmbly-transformer-wasm
This example shows how a simple JavaScript program with JSDoc comments can be transform to TypeScript, AssemblyScript, Wat and WebAssembly by chaining @esmbly/transformer-jsdoc
and @esmbly-transformer-wasm
.
# Input (JavaScript with JSDoc comments)
src/add.js
# Output (TypeScript, AssemblyScript, Wat and WebAssembly)
dist/add.ts
dist/add.as.ts
dist/add.wat
dist/add.wasm
yarn run esmbly run
yarn test