fix(common): app context should accept function as a token

This commit is contained in:
Kamil Myśliwiec
2021-11-22 10:34:37 +01:00
parent 8694dcc1ed
commit 97f9348ce5
2 changed files with 4 additions and 5 deletions

View File

@@ -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>;