Skip to content

Commit a1c8611

Browse files
fix(deno): proper response type for files
1 parent 1fd4289 commit a1c8611

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/deno/src/services/service.ts.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class {{ service.name | caseUcfirst }} extends Service {
1818
* @throws {AppwriteException}
1919
* @returns {Promise}
2020
*/
21-
async {{ 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 %}: {{ parameter.type | typeName }}{% if not loop.last %}, {% endif %}{% endfor %}): Promise<{% if method.type == 'location' %}File{% else %}T{% endif %}> {
21+
async {{ 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 %}: {{ parameter.type | typeName }}{% if not loop.last %}, {% endif %}{% endfor %}): Promise<{% if method.type == 'location' %}Response{% else %}T{% endif %}> {
2222
{% for parameter in method.parameters.all %}
2323
{% if parameter.required %}
2424
if (typeof {{ parameter.name | caseCamel }} === 'undefined') {

0 commit comments

Comments
 (0)