Skip to content

Commit b71d68a

Browse files
author
Matt Berther
committed
add options property to typescript definition
1 parent d3f5de3 commit b71d68a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ declare module "winston-daily-rotate-file" {
3939
* Maximum number of logs to keep. If not set, no logs will be removed. This can be a number of files or number of days. If using days, add 'd' as the suffix. (default: null)
4040
*/
4141
maxFiles?: string | number;
42+
43+
/**
44+
* An object resembling https://nodejs.org/api/fs.html#fs_fs_createwritestream_path_options indicating additional options that should be passed to the file stream. (default: `{ flags: 'a' }`)
45+
*/
46+
options?: string | object;
4247
}
4348

4449
interface DailyRotateFileTransportInstance extends Transport {

0 commit comments

Comments
 (0)