mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
fix(core): add abstract option to resolve method
This commit is contained in:
@@ -3,7 +3,7 @@ import {
|
||||
Logger,
|
||||
LoggerService,
|
||||
LogLevel,
|
||||
ShutdownSignal,
|
||||
ShutdownSignal
|
||||
} from '@nestjs/common';
|
||||
import { Abstract, Scope } from '@nestjs/common/interfaces';
|
||||
import { Type } from '@nestjs/common/interfaces/type.interface';
|
||||
@@ -19,7 +19,7 @@ import {
|
||||
callBeforeAppShutdownHook,
|
||||
callModuleBootstrapHook,
|
||||
callModuleDestroyHook,
|
||||
callModuleInitHook,
|
||||
callModuleInitHook
|
||||
} from './hooks';
|
||||
import { ContextId } from './injector';
|
||||
import { NestContainer } from './injector/container';
|
||||
@@ -79,7 +79,7 @@ export class NestApplicationContext implements INestApplicationContext {
|
||||
}
|
||||
|
||||
public resolve<TInput = any, TResult = TInput>(
|
||||
typeOrToken: Type<TInput> | string | symbol,
|
||||
typeOrToken: Type<TInput> | Abstract<TInput> | string | symbol,
|
||||
contextId = createContextId(),
|
||||
options: { strict: boolean } = { strict: false },
|
||||
): Promise<TResult> {
|
||||
|
||||
Reference in New Issue
Block a user