Skip to content

dweb-channel/cpp-wasm-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Use C++ to build wasm and use it in typescript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages