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: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/node
Credits
These definitions were written by mrmlnc, and mpvharmelen.