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

1.0.3 • Public • Published

Installation

npm install --save @types/list-stream

Summary

This package contains type definitions for list-stream (https://github.com/rvagg/list-stream).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/list-stream.

index.d.ts

/// <reference types="node" />

import { Duplex, DuplexOptions } from "stream";

interface ListStreamMethod {
    (callback?: (err: Error, data: any[]) => void): ListStream;
    (options?: DuplexOptions, callback?: (err: Error, data: any[]) => void): ListStream;
}

interface ListStreamConstructor extends ListStreamMethod {
    new(callback?: (err: Error, data: any[]) => void): ListStream;
    new(options?: DuplexOptions, callback?: (err: Error, data: any[]) => void): ListStream;

    obj: ListStreamMethod;
}

declare let ListStream: ListStreamConstructor;

interface ListStream extends Duplex {
    append(chunk: any): void;
    duplicate(): ListStream;
    end(): this;
    get(index: number): any;
    length: number;
}

export = ListStream;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:38 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Christian Sporer.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/list-stream

Weekly Downloads

32

Version

1.0.3

License

MIT

Unpacked Size

4.14 kB

Total Files

5

Last publish

Collaborators

  • types