-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Setter has wrong name in typescript header #1555
Comments
cc @c410-f3r, would you perhaps be interested in taking a look at this? |
Ooppsss... My bad. @alexcrichton Sure! Thanks for letting me know about this issue. |
Hi, @alexcrichton, @c410-f3r There are a little difference between js file and ts header:
get elements() {
return []
} readonly elements: Array;
get elements() {
xxx
}
set elements(value) {
xxx
} elements: Array; |
The new implementation made by @alexcrichton recently (awesome work) has this functionality but unfortunately it is currently inverted, i.e., a setter has |
Thanks @c410-f3r! |
Describe the Bug
Setter has wrong name in typescript header
Steps to Reproduce
Very simple code:
wasm_bindgen will generate right javascript code:
But typescript header is wrong:
The text was updated successfully, but these errors were encountered: