06ba2fbc4b
Bumps [axios-retry](https://github.com/softonic/axios-retry) from 3.8.1 to 3.9.0. - [Changelog](https://github.com/softonic/axios-retry/blob/master/CHANGELOG.md) - [Commits](https://github.com/softonic/axios-retry/compare/v3.8.1...v3.9.0) --- updated-dependencies: - dependency-name: axios-retry dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
19 lines
704 B
TypeScript
19 lines
704 B
TypeScript
import { ModuleMetadata, Provider, Type } from '@nestjs/common';
|
|
import { AxiosRequestConfig } from 'axios';
|
|
import IAxiosRetry from 'axios-retry';
|
|
|
|
|
|
export type HttpModuleOptions = AxiosRequestConfig &
|
|
IAxiosRetry.IAxiosRetryConfig & { isBetterStackTraceEnabled?: boolean };
|
|
|
|
export interface HttpModuleOptionsFactory {
|
|
createHttpOptions(): Promise<HttpModuleOptions> | HttpModuleOptions;
|
|
}
|
|
|
|
export interface HttpModuleAsyncOptions extends Pick<ModuleMetadata, 'imports'> {
|
|
useExisting?: Type<HttpModuleOptionsFactory>;
|
|
useClass?: Type<HttpModuleOptionsFactory>;
|
|
useFactory?: (...args: any[]) => Promise<HttpModuleOptions> | HttpModuleOptions;
|
|
inject?: any[];
|
|
extraProviders?: Provider[];
|
|
}
|