From 20478936716a941b2486045e6c0a9088e30c2437 Mon Sep 17 00:00:00 2001 From: codytseng Date: Tue, 1 Nov 2022 20:11:25 +0800 Subject: [PATCH] fix: change `repl()` function param type to `Type | DynamicModule` --- packages/core/repl/repl.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/repl/repl.ts b/packages/core/repl/repl.ts index 8b95f2ac50e..980dd652cb0 100644 --- a/packages/core/repl/repl.ts +++ b/packages/core/repl/repl.ts @@ -1,4 +1,4 @@ -import { Logger, Type } from '@nestjs/common'; +import { DynamicModule, Logger, Type } from '@nestjs/common'; import { clc } from '@nestjs/common/utils/cli-colors.util'; import { NestFactory } from '../nest-factory'; import { assignToObject } from './assign-to-object.util'; @@ -6,7 +6,7 @@ import { REPL_INITIALIZED_MESSAGE } from './constants'; import { ReplContext } from './repl-context'; import { ReplLogger } from './repl-logger'; -export async function repl(module: Type) { +export async function repl(module: Type | DynamicModule) { const app = await NestFactory.createApplicationContext(module, { abortOnError: false, logger: new ReplLogger(),