Skip to content

Commit

Permalink
fix: TS types (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
yurijmikhalevich authored Jan 27, 2023
1 parent 838617d commit 4673877
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/winston-mongodb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Definitions by: miton18 <https://github.com/miton18>, blove <https://github.com/blove>,
// Balazs Mocsai <https://github.com/mbale>

import { transports } from "winston";
import { Logform, transports } from "winston";
import { MongoDBTransportInstance, MongoDBConnectionOptions } from 'winston-mongodb';

/**
Expand Down Expand Up @@ -148,6 +148,8 @@ declare module 'winston-mongodb' {
* @memberof MongoDBConnectionOptions
*/
expireAfterSeconds?: number;

format?: Logform.Format;
}

const MongoDB: MongoDBTransportInstance;
Expand Down

0 comments on commit 4673877

Please sign in to comment.