JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 970897
  • Score
    100M100P100Q197455F
  • License MIT

TypeScript definitions for duplexify

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/duplexify) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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.