Skip to content

Commit

Permalink
Merge pull request #9023 from ZanMinKian/fix/factory-provider-type
Browse files Browse the repository at this point in the history
fix: fix factory provider definition
  • Loading branch information
kamilmysliwiec committed May 17, 2022
2 parents ddd24f9 + ce96a0e commit 2065792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/interfaces/modules/provider.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export interface FactoryProvider<T = any> {
/**
* Factory function that returns an instance of the provider to be injected.
*/
useFactory: (...args: any[]) => T;
useFactory: (...args: any[]) => T | Promise<T>;
/**
* Optional list of providers to be injected into the context of the Factory function.
*/
Expand Down

0 comments on commit 2065792

Please sign in to comment.