Skip to content

Commit 1ee3427

Browse files
Update index.d.ts.twig
1 parent 68cc60f commit 1ee3427

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/node/index.d.ts.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ declare module "{{ language.params.npmPackage|caseDash }}" {
6262
* @throws {{ '{' }}{{ spec.title | caseUcfirst}}Exception}
6363
* @returns {Promise}
6464
*/
65-
{{ method.name | caseCamel }}{% if method.type != 'location' %}<T extends unknown>{% endif %}({% for parameter in method.parameters.all %}{{ parameter.name | caseCamel }}{% if not parameter.required %}?{% endif %}: {% if parameter.type == 'array' %}{{attribute(parameter, 'array').type}}[]{% else %}{{ parameter.type | typeName }}{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}): Promise<{% if method.type == 'location' %}string{% else %}T{% endif %}>;
65+
{{ method.name | caseCamel }}{% if method.type != 'location' %}<T extends unknown>{% endif %}({% for parameter in method.parameters.all %}{{ parameter.name | caseCamel }}{% if not parameter.required %}?{% endif %}: {% if parameter.type == 'array' %}{{attribute(parameter, 'array').type}}[]{% else %}{{ parameter.type | typeName }}{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}): Promise<{% if method.type == 'location' %}Buffer{% else %}T{% endif %}>;
6666
{% endfor %}
6767
}
6868
{% endfor %}

0 commit comments

Comments
 (0)