mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-14 13:31:22 +00:00
Add TS type for init fn
This commit is contained in:
@ -11,6 +11,13 @@ cargo run -p wasm-bindgen-cli --bin wasm-bindgen -- \
|
||||
--out-dir pkg \
|
||||
--typescript
|
||||
|
||||
mkdir pkg/web
|
||||
cargo run -p wasm-bindgen-cli --bin wasm-bindgen -- \
|
||||
../../target/wasm32-unknown-unknown/debug/typescript_tests.wasm \
|
||||
--out-dir pkg/web \
|
||||
--target web \
|
||||
--typescript
|
||||
|
||||
if [ ! -d node_modules ]; then
|
||||
npm install
|
||||
fi
|
||||
|
Reference in New Issue
Block a user