From 2bfab311b41d675966c3c56d4bc8a82b12b97110 Mon Sep 17 00:00:00 2001 From: Luis Fernando Planella Gonzalez Date: Mon, 23 Oct 2023 09:48:44 -0300 Subject: [PATCH] Invalid template for ApiService Fixes #294 --- templates/apiService.handlebars | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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),