- Short notation for properties passed through constructor

This commit is contained in:
Ferdi Koomen 2022-01-26 20:20:10 +01:00
parent c9b4b7ef1d
commit b7a0f8d0eb

View File

@ -28,15 +28,11 @@ import { request as __request } from '../core/request';
export class {{{name}}}{{{@root.postfix}}} {
{{#if @root.exportClient}}
constructor(private readonly httpRequest: BaseHttpRequest) {
this.httpRequest = httpRequest;
}
constructor(private readonly httpRequest: BaseHttpRequest) {}
{{/if}}
{{#equals @root.httpClient 'angular'}}
constructor(private readonly http: HttpClient) {
this.http = http;
}
constructor(private readonly http: HttpClient) {}
{{/equals}}
{{#each operations}}