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

Rename arguments of a function #4385

Open
Vexcited opened this issue Dec 29, 2024 · 0 comments
Open

Rename arguments of a function #4385

Vexcited opened this issue Dec 29, 2024 · 0 comments
Labels

Comments

@Vexcited
Copy link

Vexcited commented Dec 29, 2024

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 !

@Vexcited Vexcited changed the title Rename parameter of a function Rename arguments of a function Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant