From 1c43f7b888b93b396140bb2ceaa1b3089ecec118 Mon Sep 17 00:00:00 2001 From: Pulkit Aggarwal <82268257+Pulkit0729@users.noreply.github.com> Date: Wed, 19 Jul 2023 20:33:32 +0530 Subject: [PATCH] Bug Fix: FileTransportOptions type missing lazy:boolean option (#2334) * Test for file Transport option rotationFormat * Test for file Transport option rotationFormat * Added Lazy option in file transport * Lint and test * removed only statement * Update test/unit/winston/transports/01-file-maxsize.test.js Co-authored-by: David Hyde * Update test/unit/winston/transports/01-file-maxsize.test.js Co-authored-by: David Hyde * Added lazy in FileTransportOptions types * Added lazy type in FileTransportInstance --------- Co-authored-by: myAlapi Co-authored-by: David Hyde --- lib/winston/transports/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/winston/transports/index.d.ts b/lib/winston/transports/index.d.ts index b8b6c62b8..c3eb45045 100644 --- a/lib/winston/transports/index.d.ts +++ b/lib/winston/transports/index.d.ts @@ -34,6 +34,7 @@ declare namespace winston { maxFiles?: number; eol?: string; tailable?: boolean; + lazy?: boolean; } interface FileTransportInstance extends Transport { @@ -47,6 +48,7 @@ declare namespace winston { maxFiles: number | null; eol: string; tailable: boolean; + lazy: boolean; new(options?: FileTransportOptions): FileTransportInstance; }