// Type definitions for browser-bunyan 0.4 // Project: https://github.com/philmander/browser-bunyan // Definitions by: Paul Lockwood // Michael Strobel // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 /// 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; def: string; msg: string; src: string; } interface ConsoleFormattedStreamOptions { logByLevel?: boolean; css?: Partial; } 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;