-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c8c483f
commit aa7e5f7
Showing
3 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
import type { ModuleRef } from '@nestjs/core'; | ||
/* eslint-disable max-len */ | ||
interface Type<T = any> extends Function { | ||
new(...args: any[]): T; | ||
} | ||
|
||
export interface NestResolver { | ||
/** | ||
* Resolves any NestJS dependency from your project. | ||
* Resolves any NestJS dependency from your project. a proxy to `moduleRef.get()` | ||
* | ||
* Return type of this function is automatically inferred. | ||
* | ||
* Returns a promise which resolves to the dependency. | ||
*/ | ||
resolveNestDependency: ModuleRef['resolve']; | ||
resolveNestDependency: <TInput = any, TResult = TInput>(typeOrToken: Type<TInput> | Function | string | symbol) => Promise<TResult>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters