TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Package WebAssembly into single-file TypeScript modules

4 点作者 gliese1337大约 4 年前

1 comment

gliese1337大约 4 年前
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.