@types/stream-line-wrapper
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Installation

npm install --save @types/stream-line-wrapper

Summary

This package contains type definitions for stream-line-wrapper (https://github.com/gregberge/stream-line-wrapper).

Details

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;

Additional Details

  • Last updated: Mon, 17 Jun 2024 20:07:03 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Remco Haszing.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/stream-line-wrapper

Weekly Downloads

22

Version

0.1.0

License

MIT

Unpacked Size

3.89 kB

Total Files

5

Last publish

Collaborators

  • types