@types/node 20.8.9 → 20.8.10

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 (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: Wed, 25 Oct 2023 17:45:39 GMT
11
+ * Last updated: Tue, 31 Oct 2023 08:42:08 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
node/net.d.ts CHANGED
@@ -91,6 +91,12 @@ declare module "net" {
91
91
  */
92
92
  class Socket extends stream.Duplex {
93
93
  constructor(options?: SocketConstructorOpts);
94
+ /**
95
+ * Destroys the socket after all data is written. If the `finish` event was already emitted the socket is destroyed immediately.
96
+ * If the socket is still writable it implicitly calls `socket.end()`.
97
+ * @since v0.3.4
98
+ */
99
+ destroySoon(): void;
94
100
  /**
95
101
  * Sends data on the socket. The second parameter specifies the encoding in the
96
102
  * case of a string. It defaults to UTF8 encoding.
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.8.9",
3
+ "version": "20.8.10",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -224,7 +224,7 @@
224
224
  "dependencies": {
225
225
  "undici-types": "~5.26.4"
226
226
  },
227
- "typesPublisherContentHash": "e270b1ec6520966a2cb0578fa33386344f78258bc0bd109a3e4b315d052e2b62",
227
+ "typesPublisherContentHash": "16184642b8bb9cb6f84a0d6245e7b26fc0133a47f604465cfae9c1ace3eeb2ba",
228
228
  "typeScriptVersion": "4.5",
229
229
  "nonNpm": true
230
230
  }
node/ts4.8/net.d.ts CHANGED
@@ -91,6 +91,12 @@ declare module "net" {
91
91
  */
92
92
  class Socket extends stream.Duplex {
93
93
  constructor(options?: SocketConstructorOpts);
94
+ /**
95
+ * Destroys the socket after all data is written. If the `finish` event was already emitted the socket is destroyed immediately.
96
+ * If the socket is still writable it implicitly calls `socket.end()`.
97
+ * @since v0.3.4
98
+ */
99
+ destroySoon(): void;
94
100
  /**
95
101
  * Sends data on the socket. The second parameter specifies the encoding in the
96
102
  * case of a string. It defaults to UTF8 encoding.