UNPKG

@slickteam/nestjs-utils

Version:
11 lines (10 loc) 602 B
import { HttpStatus, LogLevel, Logger } from '@nestjs/common'; declare function LoggerParams(level?: LogLevel): (target: { constructor: { name: string; }; }, propertyKey: string, descriptor: PropertyDescriptor) => void; declare function throwErrorAndLog(message: any, typeError: HttpStatus | undefined, logger: Logger | undefined): never; declare function throwErrorAndLogWithContext(message: any, typeError?: HttpStatus, context?: string): never; declare function logLevel(level: LogLevel): LogLevel[]; export { LoggerParams, throwErrorAndLog, throwErrorAndLogWithContext, logLevel };