@types/multistream
TypeScript icon, indicating that this package has built-in type declarations

4.1.3 • Public • Published

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.

index.d.ts

/// <reference types="node" />

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/multistream

Weekly Downloads

249,866

Version

4.1.3

License

MIT

Unpacked Size

4.1 kB

Total Files

5

Last publish

Collaborators

  • types