Stream: general

Topic: generating type definitions for Wasmtime languages


view this post on Zulip Capuccino (Nov 14 2021 at 09:27):

Hey Bytecode Alliance! We're working on a project using wasmtime-dotnet to create a scripting environment for our application. We plan to support AssemblyScript and Python, and we were generating glue code, but we couldn't find any reliable documentation on how we can provide typings for our scripting environment considering in AS, when we try to compile it, it does not do the correct module import when viewed as a WAT, is there a way to generate typings for our glue APIs?

view this post on Zulip Capuccino (Nov 14 2021 at 11:37):

basically, we're exposing some of our methods and objects into wasmtime-dotnet: https://github.com/LeNitrous/sbtw/tree/master/sbtw.Common/Scripting

then we try to provide typings for them manually for our respective language let's say something like typescript:

declare module 'storybrew' {
}

However, when I tried it out on wasm.studio, the definitions weren't declaring the imports properly

The ultimate storyboard editor for osu! Contribute to LeNitrous/sbtw development by creating an account on GitHub.

view this post on Zulip Capuccino (Dec 04 2021 at 10:28):

Heya, any updates?


Last updated: Dec 23 2024 at 12:05 UTC