refactor: specify index exports

This commit is contained in:
Shinwoo PARK 2023-11-17 17:33:32 +09:00
parent baaf19be68
commit a76d47ac8e
3 changed files with 5 additions and 5 deletions

View File

@ -1,3 +1,3 @@
export * from './logged'; export {LoggedRoute, LoggedFunction} from './logged';
export * from './logger'; export {ScopedLogger} from './logger';
export * from './reflected'; export {LoggedParamReflectData, InjectLogger, LoggedParam} from './reflected';

View File

@ -1,5 +1,5 @@
import {Logger} from "@nestjs/common"; import {Logger} from "@nestjs/common";
import ScopedLogger from "./logger"; import {ScopedLogger} from "./logger";
import {LoggedParamReflectData} from "./reflected"; import {LoggedParamReflectData} from "./reflected";
import {loggedParam, scopedLogger} from "./reflected"; import {loggedParam, scopedLogger} from "./reflected";
import objectContainedLogged from "./functions"; import objectContainedLogged from "./functions";

View File

@ -2,7 +2,7 @@ import {Logger} from "@nestjs/common";
type LogLevel = 'debug' | 'log' | 'warn' | 'verbose' | 'error' | 'fatal'; type LogLevel = 'debug' | 'log' | 'warn' | 'verbose' | 'error' | 'fatal';
export default class ScopedLogger extends Logger { export class ScopedLogger extends Logger {
constructor( constructor(
private logger: Logger, private logger: Logger,
private scope: string, private scope: string,