ConsoleLoggerService: Fix ESLint errors

We now use @types/cli-color to provide type information

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-02-24 20:39:25 +01:00
parent a0ffa3be04
commit b22d641406
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
3 changed files with 9 additions and 3 deletions

View file

@ -6,12 +6,12 @@
import { Injectable, Optional, Scope } from '@nestjs/common';
import { isObject } from '@nestjs/common/utils/shared.utils';
import * as clc from 'cli-color';
import clc = require('cli-color');
import DateTimeFormatOptions = Intl.DateTimeFormatOptions;
@Injectable({ scope: Scope.TRANSIENT })
export class ConsoleLoggerService {
private classContext;
private classContext: string;
private lastTimestamp: number;
constructor(@Optional() context?: string) {
@ -68,7 +68,7 @@ export class ConsoleLoggerService {
);
}
private makeContextString(functionContext) {
private makeContextString(functionContext: string) {
let context = this.classContext;
if (functionContext) {
context += '.' + functionContext + '()';