We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given this class
@JsType public class Company { public String name; public String getName() { return name; } public void setName(String name) { this.name = name; } }
We get the error message
/path/to/the/Company.java: Public field with public accessors not allowed in in JS exports public String name; ^
However, this shouldn't be an error, since getName and setName aren't marked as @JsProperty. Instead, we should get this ts output:
class Company { name:string; getName():string; setName(name:string):void; }
Note that adding @JsIgnore to the getter/setter methods doesn't avoid this issue.
@JsIgnore
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Given this class
We get the error message
However, this shouldn't be an error, since getName and setName aren't marked as @JsProperty. Instead, we should get this ts output:
Note that adding
@JsIgnore
to the getter/setter methods doesn't avoid this issue.The text was updated successfully, but these errors were encountered: