Fix #3604 by adding undefined as return type to headers and credentials methods in runtime.ts (#3605)

This commit is contained in:
Gustaf Barkeling 2019-08-10 09:45:41 +01:00 committed by Esteban Gehring
parent 5956569e7a
commit ac85c8f901
6 changed files with 12 additions and 12 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}