From 9d6001add69f1682e635aeea341856fb2bcbb2e0 Mon Sep 17 00:00:00 2001 From: Till Date: Wed, 28 Jun 2023 03:51:26 +0200 Subject: [PATCH] fix(types): Allow any object to be passed as meta to logger.profile (#2314) It was typed as `LogEntry` which requires both `level` and `message` to be set. That contradicts the implementation that treats these fields as optional. fixes #1969 --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index c4a03b847..39e577642 100644 --- a/index.d.ts +++ b/index.d.ts @@ -153,7 +153,7 @@ declare namespace winston { stream(options?: any): NodeJS.ReadableStream; startTimer(): Profiler; - profile(id: string | number, meta?: LogEntry): Logger; + profile(id: string | number, meta?: Record): Logger; configure(options: LoggerOptions): void;