From 14424cf6d75ecdb7681e99c057608cae654528a2 Mon Sep 17 00:00:00 2001 From: Gerhard Steenkamp Date: Fri, 29 Nov 2024 13:41:39 +0200 Subject: [PATCH] accept wide logger type --- src/utils/Profiler.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils/Profiler.ts b/src/utils/Profiler.ts index 9e3c97b31..d348c6b93 100644 --- a/src/utils/Profiler.ts +++ b/src/utils/Profiler.ts @@ -1,8 +1,12 @@ import { performance } from "node:perf_hooks"; -import { Logger } from "winston"; import crypto from "crypto"; import { DefaultLogLevels } from "./LogUtils"; +type Logger = { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + log: (level: string, ...meta: any[]) => void; +}; + type Detail = { message?: string; [key: string]: unknown;