TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Package WebAssembly into single-file TypeScript modules

4 pointsby gliese1337about 4 years ago

1 comment

gliese1337about 4 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.