mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-03-10 15:51:38 +00:00
[typescript/nestjs] remove unused imports and allow async configuration (#18745)
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
{{#useAxiosHttpModule}}
|
||||
import { Inject, Injectable, Optional } from '@nestjs/common';
|
||||
import { Injectable, Optional } from '@nestjs/common';
|
||||
import { HttpService } from '@nestjs/axios';
|
||||
{{/useAxiosHttpModule}}
|
||||
{{^useAxiosHttpModule}}
|
||||
import { HttpService, Inject, Injectable, Optional } from '@nestjs/common';
|
||||
import { HttpService, Injectable, Optional } from '@nestjs/common';
|
||||
{{/useAxiosHttpModule}}
|
||||
import { AxiosResponse } from 'axios';
|
||||
import { Observable, from, of, switchMap } from 'rxjs';
|
||||
|
||||
@@ -4,7 +4,7 @@ export interface ConfigurationParameters {
|
||||
apiKeys?: {[ key: string ]: string};
|
||||
username?: string;
|
||||
password?: string;
|
||||
accessToken?: string | (() => string);
|
||||
accessToken?: string | Promise<string> | (() => string | Promise<string>);
|
||||
basePath?: string;
|
||||
withCredentials?: boolean;
|
||||
}
|
||||
@@ -13,7 +13,7 @@ export class Configuration {
|
||||
apiKeys?: {[ key: string ]: string};
|
||||
username?: string;
|
||||
password?: string;
|
||||
accessToken?: string | (() => string);
|
||||
accessToken?: string | Promise<string> | (() => string | Promise<string>);
|
||||
basePath?: string;
|
||||
withCredentials?: boolean;
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import { HttpService, Inject, Injectable, Optional } from '@nestjs/common';
|
||||
import { HttpService, Injectable, Optional } from '@nestjs/common';
|
||||
import { AxiosResponse } from 'axios';
|
||||
import { Observable, from, of, switchMap } from 'rxjs';
|
||||
import { ApiResponse } from '../model/apiResponse';
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import { HttpService, Inject, Injectable, Optional } from '@nestjs/common';
|
||||
import { HttpService, Injectable, Optional } from '@nestjs/common';
|
||||
import { AxiosResponse } from 'axios';
|
||||
import { Observable, from, of, switchMap } from 'rxjs';
|
||||
import { Order } from '../model/order';
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import { HttpService, Inject, Injectable, Optional } from '@nestjs/common';
|
||||
import { HttpService, Injectable, Optional } from '@nestjs/common';
|
||||
import { AxiosResponse } from 'axios';
|
||||
import { Observable, from, of, switchMap } from 'rxjs';
|
||||
import { User } from '../model/user';
|
||||
|
||||
@@ -4,7 +4,7 @@ export interface ConfigurationParameters {
|
||||
apiKeys?: {[ key: string ]: string};
|
||||
username?: string;
|
||||
password?: string;
|
||||
accessToken?: string | (() => string);
|
||||
accessToken?: string | Promise<string> | (() => string | Promise<string>);
|
||||
basePath?: string;
|
||||
withCredentials?: boolean;
|
||||
}
|
||||
@@ -13,7 +13,7 @@ export class Configuration {
|
||||
apiKeys?: {[ key: string ]: string};
|
||||
username?: string;
|
||||
password?: string;
|
||||
accessToken?: string | (() => string);
|
||||
accessToken?: string | Promise<string> | (() => string | Promise<string>);
|
||||
basePath?: string;
|
||||
withCredentials?: boolean;
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import { Inject, Injectable, Optional } from '@nestjs/common';
|
||||
import { Injectable, Optional } from '@nestjs/common';
|
||||
import { HttpService } from '@nestjs/axios';
|
||||
import { AxiosResponse } from 'axios';
|
||||
import { Observable, from, of, switchMap } from 'rxjs';
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import { Inject, Injectable, Optional } from '@nestjs/common';
|
||||
import { Injectable, Optional } from '@nestjs/common';
|
||||
import { HttpService } from '@nestjs/axios';
|
||||
import { AxiosResponse } from 'axios';
|
||||
import { Observable, from, of, switchMap } from 'rxjs';
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import { Inject, Injectable, Optional } from '@nestjs/common';
|
||||
import { Injectable, Optional } from '@nestjs/common';
|
||||
import { HttpService } from '@nestjs/axios';
|
||||
import { AxiosResponse } from 'axios';
|
||||
import { Observable, from, of, switchMap } from 'rxjs';
|
||||
|
||||
@@ -4,7 +4,7 @@ export interface ConfigurationParameters {
|
||||
apiKeys?: {[ key: string ]: string};
|
||||
username?: string;
|
||||
password?: string;
|
||||
accessToken?: string | (() => string);
|
||||
accessToken?: string | Promise<string> | (() => string | Promise<string>);
|
||||
basePath?: string;
|
||||
withCredentials?: boolean;
|
||||
}
|
||||
@@ -13,7 +13,7 @@ export class Configuration {
|
||||
apiKeys?: {[ key: string ]: string};
|
||||
username?: string;
|
||||
password?: string;
|
||||
accessToken?: string | (() => string);
|
||||
accessToken?: string | Promise<string> | (() => string | Promise<string>);
|
||||
basePath?: string;
|
||||
withCredentials?: boolean;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user