Skip to content

Rename arguments of a function #4385

Closed
@Vexcited

Description

@Vexcited

Summary

Let's say I have the following method :

#[wasm_bindgen]
pub fn update (some_url: &str) -> Self {
  // whatever
}

How can I rename the argument some_url to, for example, someUrl for JS ?

It's possible to do so with structs, functions name, why not arguments individually ?
At least I did not find anything about it in the documentation.

Thanks you in advance !

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions