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

3.6.4 • Public • Published

Installation

npm install --save @types/duplexify

Summary

This package contains type definitions for duplexify (https://github.com/mafintosh/duplexify).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/duplexify.

index.d.ts

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

import * as stream from "stream";

export = duplexify;

interface DuplexifyConstructor {
    (writable?: stream.Writable, readable?: stream.Readable, streamOptions?: stream.DuplexOptions): duplexify.Duplexify;
    new(
        writable?: stream.Writable,
        readable?: stream.Readable,
        streamOptions?: stream.DuplexOptions,
    ): duplexify.Duplexify;

    obj(
        writable?: stream.Writable,
        readable?: stream.Readable,
        streamOptions?: stream.DuplexOptions,
    ): duplexify.Duplexify;
}
declare var duplexify: DuplexifyConstructor;
declare namespace duplexify {
    interface Duplexify extends stream.Duplex {
        cork(): void;
        uncork(): void;
        setWritable(writable: stream.Writable): void;
        setReadable(readable: stream.Readable): void;
    }
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Sami Kukkonen.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/duplexify

Weekly Downloads

1,456,271

Version

3.6.4

License

MIT

Unpacked Size

4.29 kB

Total Files

5

Last publish

Collaborators

  • types