Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 252 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 252 Bytes

c++ -> wasm -> ts

Now that emcc supports ts, you only need to run the following command.

emcc -lembind ./src/test.cpp -o ./test/test.js --emit-tsd test.d.ts -s MODULARIZE=1 -s EXPORT_ES6=1

easy test:

npx tsx ./test/main.ts