diff --git a/templates/apiService.handlebars b/templates/apiService.handlebars index e39405f..1bc57a1 100644 --- a/templates/apiService.handlebars +++ b/templates/apiService.handlebars @@ -43,7 +43,7 @@ export class {{apiServiceClass}} { */ invoke(fn: ApiFnRequired, params: P, context?: HttpContext): Observable; invoke(fn: ApiFnOptional, params?: P, context?: HttpContext): Observable; - invoke(fn: ApiFnRequired | ApiFnOptional, params?: P, context?: HttpContext): Observable { + invoke(fn: ApiFnRequired | ApiFnOptional, params: P, context?: HttpContext): Observable { return this.invoke$Response(fn, params, context) .pipe(map(r => r.body)); } @@ -53,7 +53,7 @@ export class {{apiServiceClass}} { */ invoke$Response(fn: ApiFnRequired, params: P, context?: HttpContext): Observable>; invoke$Response(fn: ApiFnOptional, params?: P, context?: HttpContext): Observable>; - invoke$Response(fn: ApiFnRequired | ApiFnOptional, params?: P, context?: HttpContext): Observable> { + invoke$Response(fn: ApiFnRequired | ApiFnOptional, params: P, context?: HttpContext): Observable> { return fn(this.http, this.rootUrl, params, context) .pipe( filter(r => r instanceof HttpResponse),