@types/node 18.14.2 → 18.14.4

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 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 08:32:40 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.4",
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": "89ce60011c9940ae0be0154682b51f620081287f9bdc3323d07b7c7aec0c45b6",
236
236
  "typeScriptVersion": "4.2"
237
237
  }
node/timers.d.ts CHANGED
@@ -62,6 +62,13 @@ declare module 'timers' {
62
62
  [Symbol.toPrimitive](): number;
63
63
  }
64
64
  }
65
+ /**
66
+ * Schedules execution of a one-time `callback` after `delay` milliseconds. The `callback` will likely not be invoked in precisely `delay` milliseconds.
67
+ * Node.js makes no guarantees about the exact timing of when callbacks will fire, nor of their ordering. The callback will be called as close as possible to the time specified.
68
+ * When `delay` is larger than `2147483647` or less than `1`, the `delay` will be set to `1`. Non-integer delays are truncated to an integer.
69
+ * If `callback` is not a function, a [TypeError](https://nodejs.org/api/errors.html#class-typeerror) will be thrown.
70
+ * @since v0.0.1
71
+ */
65
72
  function setTimeout<TArgs extends any[]>(callback: (...args: TArgs) => void, ms?: number, ...args: TArgs): NodeJS.Timeout;
66
73
  // util.promisify no rest args compability
67
74
  // tslint:disable-next-line void-return
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}