npm install --save @types/stream-line-wrapper
This package contains type definitions for stream-line-wrapper (https://github.com/gregberge/stream-line-wrapper).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stream-line-wrapper.
/// <reference types="node" />
import { Transform } from "stream";
declare namespace LineWrapper {
type Callback = (err: Error | null, wrappedLine: string) => void;
type Wrapper = (line: string, cb: Callback) => void;
interface Options {
prefix?: string | undefined;
suffix?: string | undefined;
wrapper?: Wrapper | undefined;
}
}
declare class LineWrapper extends Transform {
prefix: string;
suffix: string;
wrapper: string | undefined;
buffer: string;
constructor(options: LineWrapper.Options);
}
export = LineWrapper;
- Last updated: Mon, 17 Jun 2024 20:07:03 GMT
- Dependencies: @types/node
These definitions were written by Remco Haszing.