13a039edd5
Bumps [axios-retry](https://github.com/softonic/axios-retry) from 3.9.1 to 4.0.0. - [Changelog](https://github.com/softonic/axios-retry/blob/master/CHANGELOG.md) - [Commits](https://github.com/softonic/axios-retry/compare/v3.9.1...v4.0.0) --- updated-dependencies: - dependency-name: axios-retry dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
25 lines
878 B
TypeScript
25 lines
878 B
TypeScript
import type {
|
|
InjectionToken,
|
|
ModuleMetadata,
|
|
OptionalFactoryDependency,
|
|
Provider,
|
|
Type,
|
|
} from '@nestjs/common';
|
|
import type { AxiosRequestConfig } from 'axios';
|
|
import type { IAxiosRetryConfig } from 'axios-retry';
|
|
|
|
export type HttpModuleOptions = AxiosRequestConfig &
|
|
IAxiosRetryConfig & { isBetterStackTraceEnabled?: boolean };
|
|
|
|
export interface HttpModuleOptionsFactory {
|
|
createHttpOptions(): Promise<HttpModuleOptions> | HttpModuleOptions;
|
|
}
|
|
|
|
export interface HttpModuleAsyncOptions extends Pick<ModuleMetadata, 'imports'> {
|
|
useExisting?: Type<HttpModuleOptionsFactory>;
|
|
useClass?: Type<HttpModuleOptionsFactory>;
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
useFactory?: (...args: any[]) => Promise<HttpModuleOptions> | HttpModuleOptions;
|
|
inject?: (InjectionToken | OptionalFactoryDependency)[];
|
|
extraProviders?: Provider[];
|
|
}
|