@types/native-duplexpair
Version:
TypeScript definitions for native-duplexpair
32 lines (22 loc) • 926 B
Markdown
# Installation
> `npm install --save @types/native-duplexpair`
# Summary
This package contains type definitions for native-duplexpair (https://github.com/tediousjs/native-duplexpair#readme).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/native-duplexpair.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/native-duplexpair/index.d.ts)
````ts
/// <reference types="node" />
import { Duplex, DuplexOptions } from "stream";
declare class DuplexPair {
readonly socket1: Duplex;
readonly socket2: Duplex;
constructor(options?: DuplexOptions);
}
export = DuplexPair;
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 09:09:39 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
# Credits
These definitions were written by [Tim Perry](https://github.com/pimterry).