mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-17 07:20:23 +00:00
26 lines
989 B
TypeScript
26 lines
989 B
TypeScript
// 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;
|
|
}
|
|
}
|