Hello, I'm trying to implement something where "delegates" implemented in JS can be passed to the Rust side. For that I have 2 .wit
files, with the one imported in JS having a function such as addDelegate(what: delegate)
. My issue is that the delegate being created on the JS side is not an instance of the expected type - but I don't see how to create it.
I put my test project here: https://github.com/fabricedesre/wit-test
Is that the right approach? What am I missing?
Last updated: Dec 23 2024 at 12:05 UTC