Typescript

Typescript WebAssembly support is added through assemblyscript.

Set-up

To set up the assemblyscript tools you can use the Ansible playbook in this repo:

  1. cd ansible
  2. ansible-playbook assemblyscript.yml --ask-become-pass

Building functions

The Typescript functions live at typescript/assembly.

To build Typescript the echo function you can run:

  1. inv compile ts echo --ts

You can then upload them to Faasm (provided an upload server is running):

  1. inv upload ts echo --ts