Skip to content

Commit

Permalink
Merge pull request #10497 from CodyTseng/fix-repl-param-type
Browse files Browse the repository at this point in the history
fix(core): change `repl()` function param type to `Type | DynamicModule`
  • Loading branch information
kamilmysliwiec committed Nov 7, 2022
2 parents 9ffdffd + 2047893 commit eaee2b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/repl/repl.ts
@@ -1,12 +1,12 @@
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';
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(),
Expand Down

0 comments on commit eaee2b9

Please sign in to comment.