mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
fix(common): app context should accept function as a token
This commit is contained in:
@@ -22,11 +22,11 @@ export abstract class ModuleRef {
|
||||
constructor(protected readonly container: NestContainer) {}
|
||||
|
||||
public abstract get<TInput = any, TResult = TInput>(
|
||||
typeOrToken: Type<TInput> | string | symbol,
|
||||
typeOrToken: Type<TInput> | Function | string | symbol,
|
||||
options?: { strict: boolean },
|
||||
): TResult;
|
||||
public abstract resolve<TInput = any, TResult = TInput>(
|
||||
typeOrToken: Type<TInput> | string | symbol,
|
||||
typeOrToken: Type<TInput> | Function | string | symbol,
|
||||
contextId?: ContextId,
|
||||
options?: { strict: boolean },
|
||||
): Promise<TResult>;
|
||||
|
||||
Reference in New Issue
Block a user