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.