Edoardo Luppi
06/03/2024, 7:57 AMwasmJs
allows generateTypeScriptDefinitions()
, but wasmWasi
does not. Is it planned to add generateTypeScriptDefinitions()
to wasmWasi
?Artem Kobzar
06/03/2024, 10:24 AMEdoardo Luppi
06/03/2024, 10:27 AMJsExport
works for WASI too, and if you look at the outputted mjs file, the exports are indeed there, so the missing TS types felt like a misalignment with js
and wasmJs
Edoardo Luppi
06/03/2024, 10:28 AMSvyatoslav Kuzmich [JB]
06/03/2024, 11:07 AMEdoardo Luppi
06/03/2024, 11:11 AMEdoardo Luppi
06/03/2024, 11:12 AMSvyatoslav Kuzmich [JB]
06/03/2024, 11:21 AMSvyatoslav Kuzmich [JB]
06/03/2024, 11:44 AMEdoardo Luppi
06/03/2024, 1:32 PMSvyatoslav Kuzmich [JB]
06/03/2024, 1:48 PMEdoardo Luppi
06/03/2024, 1:50 PMwasmJs
, correct?Edoardo Luppi
06/03/2024, 1:52 PMSvyatoslav Kuzmich [JB]
06/03/2024, 2:05 PMwasmWasi
target.
wasmJs
target relies on a tighter integration with JS than components can currently allow, so it will remain as “core Wasm + JS” for some time. But I think it would be great to provide an ability to use components from a non-component Wasm.Edoardo Luppi
06/03/2024, 2:07 PM