Skip to content

Commit e607228

Browse files
fix(node): jsdoc return type
1 parent c32aa52 commit e607228

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/node/lib/services/service.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class {{ service.name | caseUcfirst }} extends Service {
1515
* @param {{ '{' }}{{ parameter.type | typeName }}{{ '}' }} {{ parameter.name | caseCamel }}
1616
{% endfor %}
1717
* @throws {{ '{' }}{{ spec.title | caseUcfirst}}Exception}
18-
* @returns {% if method.type == 'location' %}{string}{% else %}{Promise}{% endif %}
18+
* @returns {Promise}
1919

2020
*/
2121
async {{ method.name | caseCamel }}({% for parameter in method.parameters.all %}{{ parameter.name | caseCamel }}{% if not loop.last %}, {% endif %}{% endfor %}) {

0 commit comments

Comments
 (0)