What part of Rust -> wasm32 generates the *.d.ts files ?
What are the guides on controlling what goes into *.d.ts ?
For situations where I'm doing Rust -> wasm32 + scripting in TypeScript, any good guides on tips/tricks for *.d.ts ?
Wasm-bindgen is responsible for generating the .d.ts files. You can use
#[wasm_bindgen(typescript_custom_section)] for custom typescript interfaces and
#[wasm_bindgen(typescript_type = "...")] to control the typescript interfaces.
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.