/
githubmirror
/
nest
Обзор
Документация
Войти
/
githubmirror
/
nest
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/core/repl/repl-logger.ts
20 строк
631 B
Kamil Myśliwiec
build: use strict null checks part 2
26 ноя 2024, 15:36
Не верифицирован
26 ноя 2024, 15:36
2200897
Код
Авторство
О чём код?
import { ConsoleLogger } from '@nestjs/common'; import { NestApplication } from '../nest-application'; import { RouterExplorer } from '../router/router-explorer'; import { RoutesResolver } from '../router/routes-resolver'; export class ReplLogger extends ConsoleLogger { private static readonly ignoredContexts = [ RoutesResolver.name, RouterExplorer.name, NestApplication.name, ]; log(_message: any, context?: string) { if (ReplLogger.ignoredContexts.includes(context!)) { return; } // eslint-disable-next-line return super.log.apply(this, Array.from(arguments) as [any, string?]); } }