0.4.10 • Published 3 months ago

@types/browser-bunyan v0.4.10

Weekly downloads
1,478
License
MIT
Repository
github
Last release
3 months ago

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

// 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 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 Strobel.

0.4.10

3 months ago

0.4.9

6 months ago

0.4.8

7 months ago

0.4.7

8 months ago

0.4.6

3 years ago

0.4.5

5 years ago

0.4.4

7 years ago

0.4.3

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago