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

Can't generate proper function with return type #85

Open
hugree opened this issue Nov 21, 2017 · 1 comment
Open

Can't generate proper function with return type #85

hugree opened this issue Nov 21, 2017 · 1 comment

Comments

@hugree
Copy link

hugree commented Nov 21, 2017

I'm trying to expose AppLocalizeBehavior's localize method by introducing a custom component that I want to use on the GWT side.

I added a simple function

translate: function (language, resources, formats) {
        return this.__computeLocalize(language, resources, formats);
}

or even a simpler case with

testreturn: function () {
        return "something";
    }

However the problem is the generated code still uses void

public void translate(Object e, Object o, Object n) {
        getPolymerElement().translate(e, o, n);
    }

What am I missing here?

@Waxolunist
Copy link

I think you are missing the jsdoc comments
see https://polymer-library.polymer-project.org/2.0/docs/tools/documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants