Hello all!
I'm trying to understand the tooling around the component model. I know rust has wasm-bindgen for a WIT file, but is there an equivalent for JS/TypeScript? Just something that will generate the skeleton based on a world definition.
Thanks!
I am not an expert on js but I know that both Jco and componentize-js use a common library to do this. So I recommend looking at these projects.
We recently added types generation to Jco via the jco types
command, which can be pointed to any WIT world to generate its typescript bindings (see jco types --help
). Generating JS boilerplate for creating or consuming a WIT could possibly improved further too, would be interested to hear any suggestions on that if you have.
Last updated: Nov 22 2024 at 16:03 UTC