Skip to content

Commit 1c43f7b

Browse files
Pulkit0729myAlapiDABH
authored
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 <[email protected]> * Update test/unit/winston/transports/01-file-maxsize.test.js Co-authored-by: David Hyde <[email protected]> * Added lazy in FileTransportOptions types * Added lazy type in FileTransportInstance --------- Co-authored-by: myAlapi <[email protected]> Co-authored-by: David Hyde <[email protected]>
1 parent 19ac9d8 commit 1c43f7b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/winston/transports/index.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ declare namespace winston {
3434
maxFiles?: number;
3535
eol?: string;
3636
tailable?: boolean;
37+
lazy?: boolean;
3738
}
3839

3940
interface FileTransportInstance extends Transport {
@@ -47,6 +48,7 @@ declare namespace winston {
4748
maxFiles: number | null;
4849
eol: string;
4950
tailable: boolean;
51+
lazy: boolean;
5052

5153
new(options?: FileTransportOptions): FileTransportInstance;
5254
}

0 commit comments

Comments
 (0)