#Record to JS object
1 messages · Page 1 of 1 (latest)
my guess is: From the ffi.js import the record from the compiled mjs and do the conversion in js. Is that correct? Or maybe you don't even need to import, you can access the field directly.
it's not very type safe, maybe you can convert it to json from gleam first, and then from json to object. But it's not pretty
you want to pass the Person to some javascript (not the other way round) right?