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 { Stream } from 'stream';
declare function multistream(streams: multistream.Streams): NodeJS.ReadableStream;
interface FactoryStreamCallback {
(err: Error | null, stream: null): any;
(err: null, stream: NodeJS.ReadableStream): any;
}
declare namespace multistream {
type LazyStream = () => Stream;
type FactoryStream = (cb: FactoryStreamCallback) => void;
type Streams = Array<LazyStream | NodeJS.ReadableStream> | FactoryStream;
function obj(streams: Streams): NodeJS.ReadableStream;
}
export = multistream;
Additional Details
- Last updated: Thu, 23 Dec 2021 23:35:08 GMT
- Dependencies: @types/node
- Global values: none
Credits
These definitions were written by mrmlnc.