Settings

Theme

Show HN: Package WebAssembly into single-file TypeScript modules

github.com

4 points by gliese1337 5 years ago · 1 comment

Reader

gliese1337OP 5 years ago

I built this to solve a problem of my own: when writing WebAssembly by hand to move some hot loops out of JavaScript-land, it was very annoying to have to update TypeScript type definitions for the module exports in parallel with the WAT source. Now, I can just write WebAssembly, hit "compile", and have the instantiated WebAssembly module automagically importable in TypeScript with all the correct types, which considerably speeds up my development cycle.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection