@types/node 17.0.23 → 17.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- node/README.md +1 -1
- node/net.d.ts +7 -0
- node/package.json +2 -2
node/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Thu, 14 Apr 2022 06:31:28 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
14
14
|
|
node/net.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ declare module 'net' {
|
|
|
59
59
|
path: string;
|
|
60
60
|
}
|
|
61
61
|
type SocketConnectOpts = TcpSocketConnectOpts | IpcSocketConnectOpts;
|
|
62
|
+
type SocketReadyState = 'opening' | 'open' | 'readOnly' | 'writeOnly' | 'closed';
|
|
62
63
|
/**
|
|
63
64
|
* This class is an abstraction of a TCP socket or a streaming `IPC` endpoint
|
|
64
65
|
* (uses named pipes on Windows, and Unix domain sockets otherwise). It is also
|
|
@@ -262,6 +263,12 @@ declare module 'net' {
|
|
|
262
263
|
* @since v0.9.6
|
|
263
264
|
*/
|
|
264
265
|
readonly localPort?: number;
|
|
266
|
+
/**
|
|
267
|
+
* This property represents the state of the connection as a string.
|
|
268
|
+
* @see {https://nodejs.org/api/net.html#socketreadystate}
|
|
269
|
+
* @since v0.5.0
|
|
270
|
+
*/
|
|
271
|
+
readonly readyState: SocketReadyState;
|
|
265
272
|
/**
|
|
266
273
|
* The string representation of the remote IP address. For example,`'74.125.127.100'` or `'2001:4860:a005::68'`. Value may be `undefined` if
|
|
267
274
|
* the socket is destroyed (for example, if the client disconnected).
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.24",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -215,6 +215,6 @@
|
|
|
215
215
|
},
|
|
216
216
|
"scripts": {},
|
|
217
217
|
"dependencies": {},
|
|
218
|
-
"typesPublisherContentHash": "
|
|
218
|
+
"typesPublisherContentHash": "4eadd9da25329e1ba95fcf1696637f148f64b3b4715400e118300df7ce48eb4a",
|
|
219
219
|
"typeScriptVersion": "3.9"
|
|
220
220
|
}
|