Open ctaggart opened 1 month ago
Resources are only supported nested inside of interfaces currently - this new feature supporting top-level resource world items would be great to support.
I did not realize they should work inside of interfaces. Thank you. Will try.
I would really love to see support for WIT resources https://component-model.bytecodealliance.org/design/wit.html#resources . I tried to use them and received the "not yet implemented" error. My
cowsay.wit
just added aresource
:The error looks to be raised from this
todo
: https://github.com/bytecodealliance/jco/blob/f0eabadcb90c51a9c532ade5dd8d19cb669f559e/crates/js-component-bindgen/src/ts_bindgen.rs#L159-L160