@types/node 20.8.9 → 20.9.0
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 +6 -0
- node/package.json +2 -2
- 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:
|
|
11
|
+
* Last updated: Tue, 07 Nov 2023 20:08:00 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.
|
|
3
|
+
"version": "20.9.0",
|
|
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": "
|
|
227
|
+
"typesPublisherContentHash": "a1b366d7b3bf1afaa88e038010565763e234c0e5fa8044db8b0d7c44995bfbf8",
|
|
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.
|