Stream: general

Topic: JCO bindgen


view this post on Zulip Scott Lyons (Apr 27 2024 at 23:21):

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!

view this post on Zulip Christof Petig (Apr 28 2024 at 06:00):

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.

view this post on Zulip Guy Bedford (Apr 29 2024 at 16:52):

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: Dec 23 2024 at 13:07 UTC