@types/node 18.0.1 → 18.0.2
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/http.d.ts +10 -0
- node/https.d.ts +10 -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: Tue, 05 Jul 2022 23:32:28 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
node/http.d.ts
CHANGED
|
@@ -249,6 +249,16 @@ declare module 'http' {
|
|
|
249
249
|
* @since v14.11.0
|
|
250
250
|
*/
|
|
251
251
|
requestTimeout: number;
|
|
252
|
+
/**
|
|
253
|
+
* Closes all connections connected to this server.
|
|
254
|
+
* @since v18.2.0
|
|
255
|
+
*/
|
|
256
|
+
closeAllConnections(): void;
|
|
257
|
+
/**
|
|
258
|
+
* Closes all connections connected to this server which are not sending a request or waiting for a response.
|
|
259
|
+
* @since v18.2.0
|
|
260
|
+
*/
|
|
261
|
+
closeIdleConnections(): void;
|
|
252
262
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
253
263
|
addListener(event: 'close', listener: () => void): this;
|
|
254
264
|
addListener(event: 'connection', listener: (socket: Socket) => void): this;
|
node/https.d.ts
CHANGED
|
@@ -34,6 +34,16 @@ declare module 'https' {
|
|
|
34
34
|
class Server extends tls.Server {
|
|
35
35
|
constructor(requestListener?: http.RequestListener);
|
|
36
36
|
constructor(options: ServerOptions, requestListener?: http.RequestListener);
|
|
37
|
+
/**
|
|
38
|
+
* Closes all connections connected to this server.
|
|
39
|
+
* @since v18.2.0
|
|
40
|
+
*/
|
|
41
|
+
closeAllConnections(): void;
|
|
42
|
+
/**
|
|
43
|
+
* Closes all connections connected to this server which are not sending a request or waiting for a response.
|
|
44
|
+
* @since v18.2.0
|
|
45
|
+
*/
|
|
46
|
+
closeIdleConnections(): void;
|
|
37
47
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
38
48
|
addListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
39
49
|
addListener(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this;
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.0.2",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -220,6 +220,6 @@
|
|
|
220
220
|
},
|
|
221
221
|
"scripts": {},
|
|
222
222
|
"dependencies": {},
|
|
223
|
-
"typesPublisherContentHash": "
|
|
223
|
+
"typesPublisherContentHash": "fc738cc7cabdb53ec5ae23220900a87cbf1c890db6b05a41bbc65481f8ff8600",
|
|
224
224
|
"typeScriptVersion": "4.0"
|
|
225
225
|
}
|