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

2.0.4 • Public • Published

Installation

npm install --save @types/through2-concurrent

Summary

This package contains type definitions for through2-concurrent (https://github.com/almost/through2-concurrent).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/through2-concurrent.

index.d.ts

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

import { DuplexOptions, Transform as TransformStream } from "stream";
import { FlushCallback, TransformFunction } from "through2";

declare function through2Concurrent(transform?: TransformFunction, flush?: FlushCallback): TransformStream;
declare function through2Concurrent(
    opts?: through2Concurrent.Through2ConcurrentOptions,
    transform?: TransformFunction,
    flush?: FlushCallback,
): TransformStream;

declare namespace through2Concurrent {
    interface Through2ConcurrentOptions extends DuplexOptions {
        maxConcurrency?: number | undefined;
    }

    function obj(transform?: TransformFunction, flush?: FlushCallback): TransformStream;
    function obj(
        opts?: Through2ConcurrentOptions,
        transform?: TransformFunction,
        flush?: FlushCallback,
    ): TransformStream;
}

export = through2Concurrent;

Additional Details

Credits

These definitions were written by Alorel.

/@types/through2-concurrent/

    Package Sidebar

    Install

    npm i @types/through2-concurrent

    Weekly Downloads

    1,785

    Version

    2.0.4

    License

    MIT

    Unpacked Size

    4.54 kB

    Total Files

    5

    Last publish

    Collaborators

    • types