Skip to content

Commit c76540f

Browse files
committed
Explicit generic type for default methods
1 parent bb7fb59 commit c76540f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/android/library/src/main/java/io/appwrite/services/ServiceTemplate.kt.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class {{ service.name | caseUcfirst }} : Service {
194194
{%~ if 'multipart/form-data' in method.consumes %}
195195
onProgress: ((UploadProgress) -> Unit)? = null
196196
{%~ endif %}
197-
) = {{ method.name | caseCamel }}(
197+
): {{ method | returnType(spec, sdk.namespace | caseDot, 'Map<String, Any>') | raw }} = {{ method.name | caseCamel }}(
198198
{%~ if method.type == "webAuth" %}
199199
activity,
200200
{%~ endif %}

templates/kotlin/src/main/kotlin/io/appwrite/services/ServiceTemplate.kt.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class {{ service.name | caseUcfirst }} : Service {
106106
{%~ if 'multipart/form-data' in method.consumes %}
107107
onProgress: ((UploadProgress) -> Unit)? = null
108108
{%~ endif %}
109-
) = {{ method.name | caseCamel }}(
109+
): {{ method | returnType(spec, sdk.namespace | caseDot, 'Map<String, Any>') | raw }} = {{ method.name | caseCamel }}(
110110
{%~ if method.type == "webAuth" %}
111111
activity,
112112
{%~ endif %}

0 commit comments

Comments
 (0)