Installation
npm install --save @types/bunyan-format
Summary
This package contains type definitions for bunyan-format (https://github.com/thlorenz/bunyan-format).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bunyan-format.
import { Writable } from "stream";
declare namespace BunyanFormatWritable {
interface ColorFromLevel {
[level: number]: string;
}
interface Options {
outputMode?: "short" | "long" | "simple" | "json" | "bunyan" | "inspect" | undefined;
color?: boolean | undefined;
colorFromLevel?: ColorFromLevel | undefined;
levelInString?: boolean | undefined;
jsonIndent?: string | number | undefined;
}
}
interface BunyanFormatWritable extends Writable {
new(options: BunyanFormatWritable.Options, output?: Writable): BunyanFormatWritable;
(options: BunyanFormatWritable.Options, output?: Writable): BunyanFormatWritable;
}
declare const BunyanFormat: BunyanFormatWritable;
export = BunyanFormat;
Additional Details
- Last updated: Mon, 20 Nov 2023 23:36:23 GMT
- Dependencies: @types/node
Credits
These definitions were written by Piotr Roszatycki, and Ashley Abbott.