Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from blove/97-typescript-declarations
Fixed the TypeScript declaration file to property merge the Transport…
- Loading branch information
Showing
2 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,20 @@ | ||
// Type definitions for winston-mongodb | ||
// Project: https://github.com/winstonjs/winston-mongodb | ||
// Definitions by: miton18 <https://github.com/miton18> | ||
// Definitions by: miton18 <https://github.com/miton18>, blove <https://github.com/blove> | ||
|
||
declare module 'winston-mongodb' { | ||
export function MongoDB(options: Object): any; | ||
/// <reference types="winston" /> | ||
|
||
import { TransportInstance, Transports, Winston } from "winston"; | ||
|
||
declare namespace winston { | ||
export interface Winston { | ||
transports: WinstonMongoDBTransports; | ||
} | ||
export interface MongoDBTransportInstance extends TransportInstance {} | ||
export interface WinstonMongoDBTransports extends Transports { | ||
MongoDB: MongoDBTransportInstance; | ||
} | ||
} | ||
|
||
declare const winston: winston.Winston; | ||
export = winston; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters