3
3
4
4
/// <reference types="node" />
5
5
6
- import { Agent } from " http" ;
6
+ import { Agent } from ' http' ;
7
7
8
8
import * as Transport from 'winston-transport' ;
9
9
10
10
declare namespace winston {
11
11
interface ConsoleTransportOptions extends Transport . TransportStreamOptions {
12
- consoleWarnLevels ?: string [ ] ,
12
+ consoleWarnLevels ?: string [ ] ;
13
13
stderrLevels ?: string [ ] ;
14
14
debugStdout ?: boolean ;
15
15
eol ?: string ;
16
+ forceConsole ?: boolean ;
16
17
}
17
18
18
19
interface ConsoleTransportInstance extends Transport {
19
20
name : string ;
20
21
stderrLevels : string [ ] ;
21
22
eol : string ;
22
23
23
- new ( options ?: ConsoleTransportOptions ) : ConsoleTransportInstance ;
24
+ new ( options ?: ConsoleTransportOptions ) : ConsoleTransportInstance ;
24
25
}
25
26
26
27
interface FileTransportOptions extends Transport . TransportStreamOptions {
@@ -50,14 +51,18 @@ declare namespace winston {
50
51
tailable : boolean ;
51
52
lazy : boolean ;
52
53
53
- new ( options ?: FileTransportOptions ) : FileTransportInstance ;
54
+ new ( options ?: FileTransportOptions ) : FileTransportInstance ;
54
55
}
55
56
56
57
interface HttpTransportOptions extends Transport . TransportStreamOptions {
57
58
ssl ?: any ;
58
59
host ?: string ;
59
60
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
+ } ;
61
66
path ?: string ;
62
67
agent ?: Agent ;
63
68
headers ?: object ;
@@ -74,11 +79,15 @@ declare namespace winston {
74
79
host : string ;
75
80
maximumDepth : number ;
76
81
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
+ } ;
78
87
path : string ;
79
88
agent ?: Agent | null ;
80
89
81
- new ( options ?: HttpTransportOptions ) : HttpTransportInstance ;
90
+ new ( options ?: HttpTransportOptions ) : HttpTransportInstance ;
82
91
}
83
92
84
93
interface StreamTransportOptions extends Transport . TransportStreamOptions {
@@ -89,7 +98,7 @@ declare namespace winston {
89
98
interface StreamTransportInstance extends Transport {
90
99
eol : string ;
91
100
92
- new ( options ?: StreamTransportOptions ) : StreamTransportInstance ;
101
+ new ( options ?: StreamTransportOptions ) : StreamTransportInstance ;
93
102
}
94
103
95
104
interface Transports {
0 commit comments