4.1.3 • Published 6 months ago

@types/multistream v4.1.3

Weekly downloads
16,851
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for multistream 4.1
// Project: https://github.com/feross/multistream
// Definitions by: mrmlnc <https://github.com/mrmlnc>, mpvharmelen <https://github.com/mpvharmelen>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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

import { Stream, Readable as ReadableStream, ReadableOptions } 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: Thu, 10 Mar 2022 11:01:43 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by mrmlnc, and mpvharmelen.

4.1.3

6 months ago

4.1.2

7 months ago

4.1.1

7 months ago

4.1.0

2 years ago

2.1.2

2 years ago

2.1.1

6 years ago

2.1.0

6 years ago