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 | // Type definitions for duplexify 3.6
|
12 | // Project: https://github.com/mafintosh/duplexify
|
13 | // Definitions by: Sami Kukkonen <https://github.com/strax>
|
14 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
15 | /// <reference types="node" />
|
16 |
|
17 | import * as stream from "stream";
|
18 |
|
19 | export = duplexify;
|
20 |
|
21 | interface DuplexifyConstructor {
|
22 | (writable?: stream.Writable, readable?: stream.Readable, streamOptions?: stream.DuplexOptions): duplexify.Duplexify;
|
23 | new (writable?: stream.Writable, readable?: stream.Readable, streamOptions?: stream.DuplexOptions): duplexify.Duplexify;
|
24 |
|
25 | obj(writable?: stream.Writable, readable?: stream.Readable, streamOptions?: stream.DuplexOptions): duplexify.Duplexify;
|
26 | }
|
27 | declare var duplexify: DuplexifyConstructor;
|
28 | declare namespace duplexify {
|
29 | interface Duplexify extends stream.Duplex {
|
30 | cork(): void;
|
31 | uncork(): void;
|
32 | setWritable(writable: stream.Writable): void;
|
33 | setReadable(readable: stream.Readable): void;
|
34 | }
|
35 | }
|
36 |
|
37 | ````
|
38 |
|
39 | ### Additional Details
|
40 | * Last updated: Thu, 23 Dec 2021 23:34:31 GMT
|
41 | * Dependencies: [@types/node](https://npmjs.com/package/@types/node)
|
42 | * Global values: none
|
43 |
|
44 | # Credits
|
45 | These definitions were written by [Sami Kukkonen](https://github.com/strax).
|
46 |
|
\ | No newline at end of file |