Nutella with Pepperoni and Mushrooms

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

    3.6.1 • 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

    // Type definitions for duplexify 3.6
    // Project: https://github.com/mafintosh/duplexify
    // Definitions by: Sami Kukkonen <https://github.com/strax>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    /// <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: Thu, 23 Dec 2021 23:34:31 GMT
    • Dependencies: @types/node
    • Global values: none

    Credits

    These definitions were written by Sami Kukkonen.

    Keywords

    none

    Install

    npm i @types/duplexify

    DownloadsWeekly Downloads

    1,005,822

    Version

    3.6.1

    License

    MIT

    Unpacked Size

    4.61 kB

    Total Files

    4

    Last publish

    Collaborators

    • types