Installation
npm install --save @types/browser-bunyan
Summary
This package contains type definitions for browser-bunyan (https://github.com/philmander/browser-bunyan).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/browser-bunyan.
index.d.ts
/// <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;
Additional Details
- Last updated: Mon, 05 Feb 2024 22:35:26 GMT
- Dependencies: @types/bunyan, @types/node
Credits
These definitions were written by Paul Lockwood, and Michael Manzinger.