@types/node 18.14.2 → 18.14.3

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.
Files changed (4) hide show
  1. node/README.md +1 -1
  2. node/net.d.ts +6 -0
  3. node/package.json +2 -2
  4. node/ts4.8/net.d.ts +6 -0
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: Sun, 26 Feb 2023 19:32:42 GMT
11
+ * Last updated: Thu, 02 Mar 2023 04:32:38 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
14
14
 
node/net.d.ts CHANGED
@@ -269,6 +269,12 @@ declare module 'net' {
269
269
  * @since v6.1.0
270
270
  */
271
271
  readonly connecting: boolean;
272
+ /**
273
+ * This is `true` if the socket is not connected yet, either because `.connect()`
274
+ * has not yet been called or because it is still in the process of connecting (see `socket.connecting`).
275
+ * @since v10.16.0
276
+ */
277
+ readonly pending: boolean;
272
278
  /**
273
279
  * See `writable.destroyed` for further details.
274
280
  */
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.14.2",
3
+ "version": "18.14.3",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -232,6 +232,6 @@
232
232
  },
233
233
  "scripts": {},
234
234
  "dependencies": {},
235
- "typesPublisherContentHash": "be4d48dfd0dae2496fdfd2ee75ab6892c61b22ebae2e0b3f4552c006a06fb6a4",
235
+ "typesPublisherContentHash": "0498c0796310ac23c2299d02924a03db57cc80fd79907a0dfedf78cae5ab32e5",
236
236
  "typeScriptVersion": "4.2"
237
237
  }
node/ts4.8/net.d.ts CHANGED
@@ -290,6 +290,12 @@ declare module 'net' {
290
290
  * @since v18.8.0
291
291
  */
292
292
  readonly localFamily?: string;
293
+ /**
294
+ * This is `true` if the socket is not connected yet, either because `.connect()`
295
+ * has not yet been called or because it is still in the process of connecting (see `socket.connecting`).
296
+ * @since v10.16.0
297
+ */
298
+ readonly pending: boolean;
293
299
  /**
294
300
  * This property represents the state of the connection as a string.
295
301
  * @see {https://nodejs.org/api/net.html#socketreadystate}