$ cnpm install @types/duplexer2
npm install --save @types/duplexer2
This package contains type definitions for duplexer2 (https://github.com/deoxxa/duplexer2).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/duplexer2.
// Type definitions for duplexer2 0.1
// Project: https://github.com/deoxxa/duplexer2
// Definitions by: Zlatko Andonovski <https://github.com/Goldsmith42>
// Simon Oulevay <https://github.com/AlphaHydrae>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Definition file started by dts-gen
/// <reference types="node" />
import { DuplexOptions } from "stream";
interface Duplexer2Options extends DuplexOptions {
bubbleErrors?: boolean | undefined;
}
declare function duplexer2(
options: Duplexer2Options,
writable: NodeJS.WritableStream,
readable: NodeJS.ReadableStream,
): NodeJS.ReadWriteStream;
declare function duplexer2(writable: NodeJS.WritableStream, readable: NodeJS.ReadableStream): NodeJS.ReadWriteStream;
export = duplexer2;
These definitions were written by Zlatko Andonovski, and Simon Oulevay.
Copyright 2013 - present © cnpmjs.org | Home |