mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-06 18:45:23 +00:00
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;
|
||||
}
|
||||
|
||||
get headers(): HTTPHeaders {
|
||||
get headers(): HTTPHeaders | undefined {
|
||||
return this.configuration.headers;
|
||||
}
|
||||
|
||||
get credentials(): RequestCredentials {
|
||||
get credentials(): RequestCredentials | undefined {
|
||||
return this.configuration.credentials;
|
||||
}
|
||||
}
|
||||
|
@ -182,11 +182,11 @@ export class Configuration {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
get headers(): HTTPHeaders {
|
||||
get headers(): HTTPHeaders | undefined {
|
||||
return this.configuration.headers;
|
||||
}
|
||||
|
||||
get credentials(): RequestCredentials {
|
||||
get credentials(): RequestCredentials | undefined {
|
||||
return this.configuration.credentials;
|
||||
}
|
||||
}
|
||||
|
@ -182,11 +182,11 @@ export class Configuration {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
get headers(): HTTPHeaders {
|
||||
get headers(): HTTPHeaders | undefined {
|
||||
return this.configuration.headers;
|
||||
}
|
||||
|
||||
get credentials(): RequestCredentials {
|
||||
get credentials(): RequestCredentials | undefined {
|
||||
return this.configuration.credentials;
|
||||
}
|
||||
}
|
||||
|
@ -182,11 +182,11 @@ export class Configuration {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
get headers(): HTTPHeaders {
|
||||
get headers(): HTTPHeaders | undefined {
|
||||
return this.configuration.headers;
|
||||
}
|
||||
|
||||
get credentials(): RequestCredentials {
|
||||
get credentials(): RequestCredentials | undefined {
|
||||
return this.configuration.credentials;
|
||||
}
|
||||
}
|
||||
|
@ -182,11 +182,11 @@ export class Configuration {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
get headers(): HTTPHeaders {
|
||||
get headers(): HTTPHeaders | undefined {
|
||||
return this.configuration.headers;
|
||||
}
|
||||
|
||||
get credentials(): RequestCredentials {
|
||||
get credentials(): RequestCredentials | undefined {
|
||||
return this.configuration.credentials;
|
||||
}
|
||||
}
|
||||
|
@ -182,11 +182,11 @@ export class Configuration {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
get headers(): HTTPHeaders {
|
||||
get headers(): HTTPHeaders | undefined {
|
||||
return this.configuration.headers;
|
||||
}
|
||||
|
||||
get credentials(): RequestCredentials {
|
||||
get credentials(): RequestCredentials | undefined {
|
||||
return this.configuration.credentials;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user