1.0.3 • Published 2 years ago

@types/list-stream v1.0.3

Weekly downloads
15
License
MIT
Repository
github
Last release
2 years ago

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

// Type definitions for list-stream 1.0
// Project: https://github.com/rvagg/list-stream
// Definitions by: Christian Sporer <https://github.com/IanStorm>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.7

/// <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: Sat, 01 Jan 2022 14:01:33 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Christian Sporer.

1.0.2

2 years ago

1.0.3

2 years ago

1.0.1

3 years ago

1.0.0

7 years ago