nestjs-http-promise/lib/interfaces/http-module.interface.ts
dependabot[bot] 06ba2fbc4b
build(deps): bump axios-retry from 3.8.1 to 3.9.0
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>
2023-11-14 19:50:10 +04:00

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[];
}