gwt-api-generator icon indicating copy to clipboard operation
gwt-api-generator copied to clipboard

Can't generate proper function with return type

Open hugree opened this issue 8 years ago • 1 comments

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?

hugree avatar Nov 21 '17 20:11 hugree

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

Waxolunist avatar Jan 15 '19 14:01 Waxolunist