Installation
npm install --save @types/multistream
Summary
This package contains type definitions for multistream (https://github.com/feross/multistream).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/multistream.
import { Readable as ReadableStream, ReadableOptions, Stream } from "stream";
declare class MultiStream extends ReadableStream {
constructor(streams: MultiStream.Streams, opts?: ReadableOptions);
}
interface FactoryStreamCallback {
(err: Error | null, stream: null): void;
(err: null, stream: ReadableStream): void;
}
declare namespace MultiStream {
type LazyStream = () => Stream;
type FactoryStream = (cb: FactoryStreamCallback) => void;
type Streams = Array<LazyStream | ReadableStream> | FactoryStream;
function obj(streams: Streams): MultiStream;
}
export = MultiStream;
Additional Details
- Last updated: Wed, 27 Sep 2023 09:42:16 GMT
- Dependencies: @types/node
- Global values: none
Credits
These definitions were written by mrmlnc, and mpvharmelen.