1 | # Installation
|
2 | > `npm install --save @types/duplexify`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for duplexify (https://github.com/mafintosh/duplexify).
|
6 |
|
7 | # Details
|
8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/duplexify.
|
9 | ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/duplexify/index.d.ts)
|
10 | ````ts
|
11 | /// <reference types="node" />
|
12 |
|
13 | import * as stream from "stream";
|
14 |
|
15 | export = duplexify;
|
16 |
|
17 | interface DuplexifyConstructor {
|
18 | (writable?: stream.Writable, readable?: stream.Readable, streamOptions?: stream.DuplexOptions): duplexify.Duplexify;
|
19 | new(
|
20 | writable?: stream.Writable,
|
21 | readable?: stream.Readable,
|
22 | streamOptions?: stream.DuplexOptions,
|
23 | ): duplexify.Duplexify;
|
24 |
|
25 | obj(
|
26 | writable?: stream.Writable,
|
27 | readable?: stream.Readable,
|
28 | streamOptions?: stream.DuplexOptions,
|
29 | ): duplexify.Duplexify;
|
30 | }
|
31 | declare var duplexify: DuplexifyConstructor;
|
32 | declare namespace duplexify {
|
33 | interface Duplexify extends stream.Duplex {
|
34 | cork(): void;
|
35 | uncork(): void;
|
36 | setWritable(writable: stream.Writable): void;
|
37 | setReadable(readable: stream.Readable): void;
|
38 | }
|
39 | }
|
40 |
|
41 | ````
|
42 |
|
43 | ### Additional Details
|
44 | * Last updated: Mon, 06 Nov 2023 22:41:05 GMT
|
45 | * Dependencies: [@types/node](https://npmjs.com/package/@types/node)
|
46 |
|
47 | # Credits
|
48 | These definitions were written by [Sami Kukkonen](https://github.com/strax).
|
49 |
|
\ | No newline at end of file |