Skip to content

Commit

Permalink
Invalid template for ApiService
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis Fernando Planella Gonzalez authored and Florian Grimm committed Nov 26, 2023
1 parent 208f69d commit 2bfab31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/apiService.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class {{apiServiceClass}} {
*/
invoke<P, R>(fn: ApiFnRequired<P, R>, params: P, context?: HttpContext): Observable<R>;
invoke<P, R>(fn: ApiFnOptional<P, R>, params?: P, context?: HttpContext): Observable<R>;
invoke<P, R>(fn: ApiFnRequired<P, R> | ApiFnOptional<P, R>, params?: P, context?: HttpContext): Observable<R></R> {
invoke<P, R>(fn: ApiFnRequired<P, R> | ApiFnOptional<P, R>, params: P, context?: HttpContext): Observable<R> {
return this.invoke$Response(fn, params, context)
.pipe(map(r => r.body));
}
Expand All @@ -53,7 +53,7 @@ export class {{apiServiceClass}} {
*/
invoke$Response<P, R>(fn: ApiFnRequired<P, R>, params: P, context?: HttpContext): Observable<StrictHttpResponse<R>>;
invoke$Response<P, R>(fn: ApiFnOptional<P, R>, params?: P, context?: HttpContext): Observable<StrictHttpResponse<R>>;
invoke$Response<P, R>(fn: ApiFnRequired<P, R> | ApiFnOptional<P, R>, params?: P, context?: HttpContext): Observable<StrictHttpResponse<R>> {
invoke$Response<P, R>(fn: ApiFnRequired<P, R> | ApiFnOptional<P, R>, params: P, context?: HttpContext): Observable<StrictHttpResponse<R>> {
return fn(this.http, this.rootUrl, params, context)
.pipe(
filter(r => r instanceof HttpResponse),
Expand Down

0 comments on commit 2bfab31

Please sign in to comment.