File tree Expand file tree Collapse file tree
modules/openapi-generator/src/main/resources/typescript-rxjs
samples/client/petstore/typescript-rxjs/builds Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,12 +35,12 @@ export class Configuration {
3535 }
3636
3737 get apiKey(): ((name: string) => string) | undefined {
38- const apiKey = this.configuration.apiKey ;
38+ const { apiKey } = this.configuration;
3939 return apiKey && (typeof apiKey === 'function' ? apiKey : () => apiKey);
4040 }
4141
4242 get accessToken(): ((name: string, scopes?: string[]) => string) | undefined {
43- const accessToken = this.configuration.accessToken ;
43+ const { accessToken } = this.configuration;
4444 return accessToken && (typeof accessToken === 'function' ? accessToken : () => accessToken);
4545 }
4646}
Original file line number Diff line number Diff line change @@ -46,12 +46,12 @@ export class Configuration {
4646 }
4747
4848 get apiKey ( ) : ( ( name : string ) => string ) | undefined {
49- const apiKey = this . configuration . apiKey ;
49+ const { apiKey } = this . configuration ;
5050 return apiKey && ( typeof apiKey === 'function' ? apiKey : ( ) => apiKey ) ;
5151 }
5252
5353 get accessToken ( ) : ( ( name : string , scopes ?: string [ ] ) => string ) | undefined {
54- const accessToken = this . configuration . accessToken ;
54+ const { accessToken } = this . configuration ;
5555 return accessToken && ( typeof accessToken === 'function' ? accessToken : ( ) => accessToken ) ;
5656 }
5757}
Original file line number Diff line number Diff line change @@ -46,12 +46,12 @@ export class Configuration {
4646 }
4747
4848 get apiKey ( ) : ( ( name : string ) => string ) | undefined {
49- const apiKey = this . configuration . apiKey ;
49+ const { apiKey } = this . configuration ;
5050 return apiKey && ( typeof apiKey === 'function' ? apiKey : ( ) => apiKey ) ;
5151 }
5252
5353 get accessToken ( ) : ( ( name : string , scopes ?: string [ ] ) => string ) | undefined {
54- const accessToken = this . configuration . accessToken ;
54+ const { accessToken } = this . configuration ;
5555 return accessToken && ( typeof accessToken === 'function' ? accessToken : ( ) => accessToken ) ;
5656 }
5757}
Original file line number Diff line number Diff line change @@ -46,12 +46,12 @@ export class Configuration {
4646 }
4747
4848 get apiKey ( ) : ( ( name : string ) => string ) | undefined {
49- const apiKey = this . configuration . apiKey ;
49+ const { apiKey } = this . configuration ;
5050 return apiKey && ( typeof apiKey === 'function' ? apiKey : ( ) => apiKey ) ;
5151 }
5252
5353 get accessToken ( ) : ( ( name : string , scopes ?: string [ ] ) => string ) | undefined {
54- const accessToken = this . configuration . accessToken ;
54+ const { accessToken } = this . configuration ;
5555 return accessToken && ( typeof accessToken === 'function' ? accessToken : ( ) => accessToken ) ;
5656 }
5757}
Original file line number Diff line number Diff line change @@ -46,12 +46,12 @@ export class Configuration {
4646 }
4747
4848 get apiKey ( ) : ( ( name : string ) => string ) | undefined {
49- const apiKey = this . configuration . apiKey ;
49+ const { apiKey } = this . configuration ;
5050 return apiKey && ( typeof apiKey === 'function' ? apiKey : ( ) => apiKey ) ;
5151 }
5252
5353 get accessToken ( ) : ( ( name : string , scopes ?: string [ ] ) => string ) | undefined {
54- const accessToken = this . configuration . accessToken ;
54+ const { accessToken } = this . configuration ;
5555 return accessToken && ( typeof accessToken === 'function' ? accessToken : ( ) => accessToken ) ;
5656 }
5757}
You can’t perform that action at this time.
0 commit comments