Skip to content

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

@daidoji

Description

@daidoji

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions