mirror of
https://github.com/ferdikoomen/openapi-typescript-codegen.git
synced 2025-12-08 20:16:21 +00:00
- Short notation for properties passed through constructor
This commit is contained in:
parent
c9b4b7ef1d
commit
b7a0f8d0eb
@ -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}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user