Skip to content

Commit

Permalink
Merge pull request #1104 from ivanzigoni/fix-inject-type
Browse files Browse the repository at this point in the history
refactor: sets correct typing to inject property
  • Loading branch information
kamilmysliwiec authored Oct 21, 2024
2 parents d4051a6 + d967f30 commit faf41c7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/interfaces/http-module.interface.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { ModuleMetadata, Provider, Type } from '@nestjs/common';
import {
FactoryProvider,
ModuleMetadata,
Provider,
Type,
} from '@nestjs/common';
import { AxiosRequestConfig } from 'axios';

export type HttpModuleOptions = AxiosRequestConfig;
Expand All @@ -14,6 +19,6 @@ export interface HttpModuleAsyncOptions
useFactory?: (
...args: any[]
) => Promise<HttpModuleOptions> | HttpModuleOptions;
inject?: any[];
inject?: FactoryProvider['inject'];
extraProviders?: Provider[];
}

0 comments on commit faf41c7

Please sign in to comment.