Skip to content

Commit

Permalink
Bug Fix: FileTransportOptions type missing lazy:boolean option (#2334)
Browse files Browse the repository at this point in the history
* 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 <DABH@users.noreply.github.com>

* Update test/unit/winston/transports/01-file-maxsize.test.js

Co-authored-by: David Hyde <DABH@users.noreply.github.com>

* Added lazy in FileTransportOptions types

* Added lazy type in FileTransportInstance

---------

Co-authored-by: myAlapi <myalapi2022@gmail.com>
Co-authored-by: David Hyde <DABH@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 19, 2023
1 parent 19ac9d8 commit 1c43f7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/winston/transports/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ declare namespace winston {
maxFiles?: number;
eol?: string;
tailable?: boolean;
lazy?: boolean;
}

interface FileTransportInstance extends Transport {
Expand All @@ -47,6 +48,7 @@ declare namespace winston {
maxFiles: number | null;
eol: string;
tailable: boolean;
lazy: boolean;

new(options?: FileTransportOptions): FileTransportInstance;
}
Expand Down

0 comments on commit 1c43f7b

Please sign in to comment.