Skip to content

Commit

Permalink
add options property to typescript definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Berther committed Oct 29, 2018
1 parent d3f5de3 commit b71d68a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ declare module "winston-daily-rotate-file" {
* 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)
*/
maxFiles?: string | number;

/**
* 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' }`)
*/
options?: string | object;
}

interface DailyRotateFileTransportInstance extends Transport {
Expand Down

0 comments on commit b71d68a

Please sign in to comment.