Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WASM] Figure out a way to use options object or another wasm-bindgen pattern/macro to support javascript destructuring call #159

Open
daidoji opened this issue Nov 29, 2023 · 0 comments

Comments

@daidoji
Copy link
Collaborator

daidoji commented 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'}).

@daidoji 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant