mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-28 08:17:54 +08:00
* Update `TypeScript Version`s to be at least as high as dependencies' versions * Run through again
33 lines
980 B
TypeScript
33 lines
980 B
TypeScript
// Type definitions for browser-bunyan 0.4
|
|
// Project: https://github.com/philmander/browser-bunyan
|
|
// Definitions by: Paul Lockwood <https://github.com/PaulLockwood>
|
|
// Michael Strobel <https://github.com/kryops>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
/// <reference types="node" />
|
|
|
|
import * as bunyan from 'bunyan';
|
|
|
|
declare namespace BrowserBunyan {
|
|
interface ConsoleFormattedStreamOptions {
|
|
logByLevel?: boolean;
|
|
}
|
|
|
|
interface ConsoleFormattedStream {
|
|
new(options?: ConsoleFormattedStreamOptions): NodeJS.WritableStream;
|
|
}
|
|
|
|
interface ConsoleRawStream {
|
|
new(options?: ConsoleFormattedStreamOptions): NodeJS.WritableStream;
|
|
}
|
|
}
|
|
|
|
type BrowserBunyan = typeof bunyan & {
|
|
ConsoleFormattedStream: BrowserBunyan.ConsoleFormattedStream
|
|
ConsoleRawStream: BrowserBunyan.ConsoleRawStream
|
|
};
|
|
|
|
declare const browserBunyan: BrowserBunyan;
|
|
export = browserBunyan;
|