Skip to content

Commit 76ba3e0

Browse files
fix: remove superfluous any | undefined, add a missing fix for awsv4
1 parent 817a254 commit 76ba3e0

16 files changed

Lines changed: 32 additions & 32 deletions

File tree

modules/openapi-generator/src/main/resources/typescript-axios/configuration.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface ConfigurationParameters {
2121
awsv4?: AWSv4Configuration | undefined;
2222
basePath?: string | undefined;
2323
serverIndex?: number | undefined;
24-
baseOptions?: any | undefined;
24+
baseOptions?: any;
2525
formDataCtor?: (new () => any) | undefined;
2626
}
2727

@@ -55,7 +55,7 @@ export class Configuration {
5555
* @param {string} credentials.sessionToken - aws session token
5656
* @memberof Configuration
5757
*/
58-
awsv4?: AWSv4Configuration;
58+
awsv4?: AWSv4Configuration | undefined;
5959
/**
6060
* override base path
6161
*/

samples/client/echo_api/typescript-axios/build/configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export interface ConfigurationParameters {
3131
awsv4?: AWSv4Configuration | undefined;
3232
basePath?: string | undefined;
3333
serverIndex?: number | undefined;
34-
baseOptions?: any | undefined;
34+
baseOptions?: any;
3535
formDataCtor?: (new () => any) | undefined;
3636
}
3737

@@ -65,7 +65,7 @@ export class Configuration {
6565
* @param {string} credentials.sessionToken - aws session token
6666
* @memberof Configuration
6767
*/
68-
awsv4?: AWSv4Configuration;
68+
awsv4?: AWSv4Configuration | undefined;
6969
/**
7070
* override base path
7171
*/

samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export interface ConfigurationParameters {
3131
awsv4?: AWSv4Configuration | undefined;
3232
basePath?: string | undefined;
3333
serverIndex?: number | undefined;
34-
baseOptions?: any | undefined;
34+
baseOptions?: any;
3535
formDataCtor?: (new () => any) | undefined;
3636
}
3737

@@ -65,7 +65,7 @@ export class Configuration {
6565
* @param {string} credentials.sessionToken - aws session token
6666
* @memberof Configuration
6767
*/
68-
awsv4?: AWSv4Configuration;
68+
awsv4?: AWSv4Configuration | undefined;
6969
/**
7070
* override base path
7171
*/

samples/client/petstore/typescript-axios/builds/composed-schemas/configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export interface ConfigurationParameters {
3131
awsv4?: AWSv4Configuration | undefined;
3232
basePath?: string | undefined;
3333
serverIndex?: number | undefined;
34-
baseOptions?: any | undefined;
34+
baseOptions?: any;
3535
formDataCtor?: (new () => any) | undefined;
3636
}
3737

@@ -65,7 +65,7 @@ export class Configuration {
6565
* @param {string} credentials.sessionToken - aws session token
6666
* @memberof Configuration
6767
*/
68-
awsv4?: AWSv4Configuration;
68+
awsv4?: AWSv4Configuration | undefined;
6969
/**
7070
* override base path
7171
*/

samples/client/petstore/typescript-axios/builds/default/configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export interface ConfigurationParameters {
3131
awsv4?: AWSv4Configuration | undefined;
3232
basePath?: string | undefined;
3333
serverIndex?: number | undefined;
34-
baseOptions?: any | undefined;
34+
baseOptions?: any;
3535
formDataCtor?: (new () => any) | undefined;
3636
}
3737

@@ -65,7 +65,7 @@ export class Configuration {
6565
* @param {string} credentials.sessionToken - aws session token
6666
* @memberof Configuration
6767
*/
68-
awsv4?: AWSv4Configuration;
68+
awsv4?: AWSv4Configuration | undefined;
6969
/**
7070
* override base path
7171
*/

samples/client/petstore/typescript-axios/builds/es6-target/configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export interface ConfigurationParameters {
3131
awsv4?: AWSv4Configuration | undefined;
3232
basePath?: string | undefined;
3333
serverIndex?: number | undefined;
34-
baseOptions?: any | undefined;
34+
baseOptions?: any;
3535
formDataCtor?: (new () => any) | undefined;
3636
}
3737

@@ -65,7 +65,7 @@ export class Configuration {
6565
* @param {string} credentials.sessionToken - aws session token
6666
* @memberof Configuration
6767
*/
68-
awsv4?: AWSv4Configuration;
68+
awsv4?: AWSv4Configuration | undefined;
6969
/**
7070
* override base path
7171
*/

samples/client/petstore/typescript-axios/builds/test-petstore/configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export interface ConfigurationParameters {
3131
awsv4?: AWSv4Configuration | undefined;
3232
basePath?: string | undefined;
3333
serverIndex?: number | undefined;
34-
baseOptions?: any | undefined;
34+
baseOptions?: any;
3535
formDataCtor?: (new () => any) | undefined;
3636
}
3737

@@ -65,7 +65,7 @@ export class Configuration {
6565
* @param {string} credentials.sessionToken - aws session token
6666
* @memberof Configuration
6767
*/
68-
awsv4?: AWSv4Configuration;
68+
awsv4?: AWSv4Configuration | undefined;
6969
/**
7070
* override base path
7171
*/

samples/client/petstore/typescript-axios/builds/with-complex-headers/configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export interface ConfigurationParameters {
3131
awsv4?: AWSv4Configuration | undefined;
3232
basePath?: string | undefined;
3333
serverIndex?: number | undefined;
34-
baseOptions?: any | undefined;
34+
baseOptions?: any;
3535
formDataCtor?: (new () => any) | undefined;
3636
}
3737

@@ -65,7 +65,7 @@ export class Configuration {
6565
* @param {string} credentials.sessionToken - aws session token
6666
* @memberof Configuration
6767
*/
68-
awsv4?: AWSv4Configuration;
68+
awsv4?: AWSv4Configuration | undefined;
6969
/**
7070
* override base path
7171
*/

samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export interface ConfigurationParameters {
3131
awsv4?: AWSv4Configuration | undefined;
3232
basePath?: string | undefined;
3333
serverIndex?: number | undefined;
34-
baseOptions?: any | undefined;
34+
baseOptions?: any;
3535
formDataCtor?: (new () => any) | undefined;
3636
}
3737

@@ -65,7 +65,7 @@ export class Configuration {
6565
* @param {string} credentials.sessionToken - aws session token
6666
* @memberof Configuration
6767
*/
68-
awsv4?: AWSv4Configuration;
68+
awsv4?: AWSv4Configuration | undefined;
6969
/**
7070
* override base path
7171
*/

samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export interface ConfigurationParameters {
3131
awsv4?: AWSv4Configuration | undefined;
3232
basePath?: string | undefined;
3333
serverIndex?: number | undefined;
34-
baseOptions?: any | undefined;
34+
baseOptions?: any;
3535
formDataCtor?: (new () => any) | undefined;
3636
}
3737

@@ -65,7 +65,7 @@ export class Configuration {
6565
* @param {string} credentials.sessionToken - aws session token
6666
* @memberof Configuration
6767
*/
68-
awsv4?: AWSv4Configuration;
68+
awsv4?: AWSv4Configuration | undefined;
6969
/**
7070
* override base path
7171
*/

0 commit comments

Comments
 (0)