@types/browser-bunyan
TypeScript icon, indicating that this package has built-in type declarations

0.4.10 • Public • Published

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

Credits

These definitions were written by Paul Lockwood, and Michael Manzinger.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/browser-bunyan

Weekly Downloads

962

Version

0.4.10

License

MIT

Unpacked Size

5.09 kB

Total Files

5

Last publish

Collaborators

  • types