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: Fri, 15 Sep 2023 19:06:48 GMT
- Dependencies: @types/node
- Global values: none
Credits
These definitions were written by Piotr Roszatycki, and Ashley Abbott.