Stream: general

Topic: Help with resource handles


view this post on Zulip Fabrice Desré (Aug 26 2022 at 23:04):

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?

Contribute to fabricedesre/wit-test development by creating an account on GitHub.

Last updated: Dec 23 2024 at 12:05 UTC