mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-18 17:25:16 -04:00
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:
parent
a0ffa3be04
commit
b22d641406
3 changed files with 9 additions and 3 deletions
|
@ -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 + '()';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue