forked from loafle/openapi-generator-original
Fix #3604 by adding undefined as return type to headers and credentials methods in runtime.ts (#3605)
This commit is contained in:
parent
5956569e7a
commit
ac85c8f901
@ -171,11 +171,11 @@ export class Configuration {
|
|||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
get headers(): HTTPHeaders {
|
get headers(): HTTPHeaders | undefined {
|
||||||
return this.configuration.headers;
|
return this.configuration.headers;
|
||||||
}
|
}
|
||||||
|
|
||||||
get credentials(): RequestCredentials {
|
get credentials(): RequestCredentials | undefined {
|
||||||
return this.configuration.credentials;
|
return this.configuration.credentials;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -182,11 +182,11 @@ export class Configuration {
|
|||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
get headers(): HTTPHeaders {
|
get headers(): HTTPHeaders | undefined {
|
||||||
return this.configuration.headers;
|
return this.configuration.headers;
|
||||||
}
|
}
|
||||||
|
|
||||||
get credentials(): RequestCredentials {
|
get credentials(): RequestCredentials | undefined {
|
||||||
return this.configuration.credentials;
|
return this.configuration.credentials;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -182,11 +182,11 @@ export class Configuration {
|
|||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
get headers(): HTTPHeaders {
|
get headers(): HTTPHeaders | undefined {
|
||||||
return this.configuration.headers;
|
return this.configuration.headers;
|
||||||
}
|
}
|
||||||
|
|
||||||
get credentials(): RequestCredentials {
|
get credentials(): RequestCredentials | undefined {
|
||||||
return this.configuration.credentials;
|
return this.configuration.credentials;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -182,11 +182,11 @@ export class Configuration {
|
|||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
get headers(): HTTPHeaders {
|
get headers(): HTTPHeaders | undefined {
|
||||||
return this.configuration.headers;
|
return this.configuration.headers;
|
||||||
}
|
}
|
||||||
|
|
||||||
get credentials(): RequestCredentials {
|
get credentials(): RequestCredentials | undefined {
|
||||||
return this.configuration.credentials;
|
return this.configuration.credentials;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -182,11 +182,11 @@ export class Configuration {
|
|||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
get headers(): HTTPHeaders {
|
get headers(): HTTPHeaders | undefined {
|
||||||
return this.configuration.headers;
|
return this.configuration.headers;
|
||||||
}
|
}
|
||||||
|
|
||||||
get credentials(): RequestCredentials {
|
get credentials(): RequestCredentials | undefined {
|
||||||
return this.configuration.credentials;
|
return this.configuration.credentials;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -182,11 +182,11 @@ export class Configuration {
|
|||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
get headers(): HTTPHeaders {
|
get headers(): HTTPHeaders | undefined {
|
||||||
return this.configuration.headers;
|
return this.configuration.headers;
|
||||||
}
|
}
|
||||||
|
|
||||||
get credentials(): RequestCredentials {
|
get credentials(): RequestCredentials | undefined {
|
||||||
return this.configuration.credentials;
|
return this.configuration.credentials;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user