forked from loafle/openapi-generator-original
Merge pull request #2812 from achew22/undefined_ts
Update TypeScript to do a better check for empty on basePath.
This commit is contained in:
commit
1520b90b0d
@ -18,7 +18,7 @@ namespace {{package}} {
|
|||||||
static $inject: string[] = ['$http', '$httpParamSerializer', 'basePath'];
|
static $inject: string[] = ['$http', '$httpParamSerializer', 'basePath'];
|
||||||
|
|
||||||
constructor(protected $http: ng.IHttpService, protected $httpParamSerializer?: (d: any) => any, basePath?: string) {
|
constructor(protected $http: ng.IHttpService, protected $httpParamSerializer?: (d: any) => any, basePath?: string) {
|
||||||
if (basePath) {
|
if (basePath !== undefined) {
|
||||||
this.basePath = basePath;
|
this.basePath = basePath;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@ namespace API.Client {
|
|||||||
static $inject: string[] = ['$http', '$httpParamSerializer', 'basePath'];
|
static $inject: string[] = ['$http', '$httpParamSerializer', 'basePath'];
|
||||||
|
|
||||||
constructor(protected $http: ng.IHttpService, protected $httpParamSerializer?: (d: any) => any, basePath?: string) {
|
constructor(protected $http: ng.IHttpService, protected $httpParamSerializer?: (d: any) => any, basePath?: string) {
|
||||||
if (basePath) {
|
if (basePath !== undefined) {
|
||||||
this.basePath = basePath;
|
this.basePath = basePath;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@ namespace API.Client {
|
|||||||
static $inject: string[] = ['$http', '$httpParamSerializer', 'basePath'];
|
static $inject: string[] = ['$http', '$httpParamSerializer', 'basePath'];
|
||||||
|
|
||||||
constructor(protected $http: ng.IHttpService, protected $httpParamSerializer?: (d: any) => any, basePath?: string) {
|
constructor(protected $http: ng.IHttpService, protected $httpParamSerializer?: (d: any) => any, basePath?: string) {
|
||||||
if (basePath) {
|
if (basePath !== undefined) {
|
||||||
this.basePath = basePath;
|
this.basePath = basePath;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@ namespace API.Client {
|
|||||||
static $inject: string[] = ['$http', '$httpParamSerializer', 'basePath'];
|
static $inject: string[] = ['$http', '$httpParamSerializer', 'basePath'];
|
||||||
|
|
||||||
constructor(protected $http: ng.IHttpService, protected $httpParamSerializer?: (d: any) => any, basePath?: string) {
|
constructor(protected $http: ng.IHttpService, protected $httpParamSerializer?: (d: any) => any, basePath?: string) {
|
||||||
if (basePath) {
|
if (basePath !== undefined) {
|
||||||
this.basePath = basePath;
|
this.basePath = basePath;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user