Skip to content

Commit 9d6001a

Browse files
authored
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
1 parent 06e3165 commit 9d6001a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ declare namespace winston {
153153
stream(options?: any): NodeJS.ReadableStream;
154154

155155
startTimer(): Profiler;
156-
profile(id: string | number, meta?: LogEntry): Logger;
156+
profile(id: string | number, meta?: Record<string, any>): Logger;
157157

158158
configure(options: LoggerOptions): void;
159159

0 commit comments

Comments
 (0)