Installation
npm install --save @types/bunyan-prettystream
Summary
This package contains type definitions for bunyan-prettystream (https://www.npmjs.com/package/bunyan-prettystream).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bunyan-prettystream.
index.d.ts
/// <reference types="node" />
import stream = require("stream");
declare class PrettyStream extends stream.Writable {
/**
* @param options.mode Output format, can be either `long`, `short`, or `dev`,
* defaults to `long`.
* @param options.useColor Indicates whether or not output should be colored,
* defaults to `true`.
*/
constructor(options?: { mode?: string | undefined; useColor?: boolean | undefined });
/**
* Pipes data from this stream to another.
*
* @param destination Stream to write data to.
* @param options.end Indicates whether `end()` should be called on the `destination`
* stream when this stream emits `end`, defaults to `true`.
* @return The `destination` stream.
*/
pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean | undefined }): T;
}
export = PrettyStream;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: @types/node
Credits
These definitions were written by Jason Swearingen, and Vadim Macagon.