You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ideally in our wasm libraries we'd like to support the javascript destructuring patterns for constructor parameters like https://simonsmith.io/destructuring-objects-as-function-parameters-in-es6 Figure out a pattern in wasm-bindgen or rust to output an API that will support the regular our_function(somthing, undefined, undefined, ... or the nicer (on the API consumer) our_function({key: 'something'}).
The text was updated successfully, but these errors were encountered:
daidoji
changed the title
Figure out a way to use options object or another wasm-bindgen pattern/macro to support javascript destructuring call
[WASM] Figure out a way to use options object or another wasm-bindgen pattern/macro to support javascript destructuring call
Nov 29, 2023
Ideally in our wasm libraries we'd like to support the javascript destructuring patterns for constructor parameters like https://simonsmith.io/destructuring-objects-as-function-parameters-in-es6 Figure out a pattern in wasm-bindgen or rust to output an API that will support the regular
our_function(somthing, undefined, undefined, ...
or the nicer (on the API consumer)our_function({key: 'something'})
.The text was updated successfully, but these errors were encountered: