33
44/// <reference types="node" />
55
6- import { Agent } from " http" ;
6+ import { Agent } from ' http' ;
77
88import * as Transport from 'winston-transport' ;
99
1010declare namespace winston {
1111 interface ConsoleTransportOptions extends Transport . TransportStreamOptions {
12- consoleWarnLevels ?: string [ ] ,
12+ consoleWarnLevels ?: string [ ] ;
1313 stderrLevels ?: string [ ] ;
1414 debugStdout ?: boolean ;
1515 eol ?: string ;
16+ forceConsole ?: boolean ;
1617 }
1718
1819 interface ConsoleTransportInstance extends Transport {
1920 name : string ;
2021 stderrLevels : string [ ] ;
2122 eol : string ;
2223
23- new ( options ?: ConsoleTransportOptions ) : ConsoleTransportInstance ;
24+ new ( options ?: ConsoleTransportOptions ) : ConsoleTransportInstance ;
2425 }
2526
2627 interface FileTransportOptions extends Transport . TransportStreamOptions {
@@ -50,14 +51,18 @@ declare namespace winston {
5051 tailable : boolean ;
5152 lazy : boolean ;
5253
53- new ( options ?: FileTransportOptions ) : FileTransportInstance ;
54+ new ( options ?: FileTransportOptions ) : FileTransportInstance ;
5455 }
5556
5657 interface HttpTransportOptions extends Transport . TransportStreamOptions {
5758 ssl ?: any ;
5859 host ?: string ;
5960 port ?: number ;
60- auth ?: { username ?: string | undefined , password ?: string | undefined , bearer ?: string | undefined } ;
61+ auth ?: {
62+ username ?: string | undefined ;
63+ password ?: string | undefined ;
64+ bearer ?: string | undefined ;
65+ } ;
6166 path ?: string ;
6267 agent ?: Agent ;
6368 headers ?: object ;
@@ -74,11 +79,15 @@ declare namespace winston {
7479 host : string ;
7580 maximumDepth : number ;
7681 port : number ;
77- auth ?: { username ?: string | undefined , password ?: string | undefined , bearer ?: string | undefined } ;
82+ auth ?: {
83+ username ?: string | undefined ;
84+ password ?: string | undefined ;
85+ bearer ?: string | undefined ;
86+ } ;
7887 path : string ;
7988 agent ?: Agent | null ;
8089
81- new ( options ?: HttpTransportOptions ) : HttpTransportInstance ;
90+ new ( options ?: HttpTransportOptions ) : HttpTransportInstance ;
8291 }
8392
8493 interface StreamTransportOptions extends Transport . TransportStreamOptions {
@@ -89,7 +98,7 @@ declare namespace winston {
8998 interface StreamTransportInstance extends Transport {
9099 eol : string ;
91100
92- new ( options ?: StreamTransportOptions ) : StreamTransportInstance ;
101+ new ( options ?: StreamTransportOptions ) : StreamTransportInstance ;
93102 }
94103
95104 interface Transports {
0 commit comments