-
Notifications
You must be signed in to change notification settings - Fork 29.8k
/
index.d.ts
38 lines (30 loc) · 1.04 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/// <reference types="node" />
import * as bunyan from "bunyan";
declare namespace BrowserBunyan {
interface ConsoleFormattedStreamLevelStyle {
trace: string;
debug: string;
info: string;
warn: string;
error: string;
fatal: string;
}
interface ConsoleFormattedStreamStyle {
levels: Partial<ConsoleFormattedStreamLevelStyle>;
def: string;
msg: string;
src: string;
}
interface ConsoleFormattedStreamOptions {
logByLevel?: boolean | undefined;
css?: Partial<ConsoleFormattedStreamStyle> | undefined;
}
type ConsoleFormattedStream = new(options?: ConsoleFormattedStreamOptions) => NodeJS.WritableStream;
type ConsoleRawStream = new(options?: ConsoleFormattedStreamOptions) => NodeJS.WritableStream;
}
type BrowserBunyan = typeof bunyan & {
ConsoleFormattedStream: BrowserBunyan.ConsoleFormattedStream;
ConsoleRawStream: BrowserBunyan.ConsoleRawStream;
};
declare const browserBunyan: BrowserBunyan;
export = browserBunyan;