@types/node 22.19.10 → 22.19.12
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 v22.19/README.md +1 -1
- node v22.19/package.json +2 -2
- node v22.19/test.d.ts +2 -1
- node v22.19/tls.d.ts +7 -7
node v22.19/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/v22.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Thu, 26 Feb 2026 01:32:45 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
node v22.19/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "22.19.
|
|
3
|
+
"version": "22.19.12",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -140,6 +140,6 @@
|
|
|
140
140
|
"undici-types": "~6.21.0"
|
|
141
141
|
},
|
|
142
142
|
"peerDependencies": {},
|
|
143
|
-
"typesPublisherContentHash": "
|
|
143
|
+
"typesPublisherContentHash": "947b3e62921e768f687e37546b2f27f78bb7fee073c855018f50da37272adc04",
|
|
144
144
|
"typeScriptVersion": "5.2"
|
|
145
145
|
}
|
node v22.19/test.d.ts
CHANGED
|
@@ -81,6 +81,7 @@
|
|
|
81
81
|
declare module "node:test" {
|
|
82
82
|
import { AssertMethodNames } from "node:assert";
|
|
83
83
|
import { Readable } from "node:stream";
|
|
84
|
+
import { URL } from "node:url";
|
|
84
85
|
import TestFn = test.TestFn;
|
|
85
86
|
import TestOptions = test.TestOptions;
|
|
86
87
|
/**
|
|
@@ -1638,7 +1639,7 @@ declare module "node:test" {
|
|
|
1638
1639
|
* @param specifier A string identifying the module to mock.
|
|
1639
1640
|
* @param options Optional configuration options for the mock module.
|
|
1640
1641
|
*/
|
|
1641
|
-
module(specifier: string, options?: MockModuleOptions): MockModuleContext;
|
|
1642
|
+
module(specifier: string | URL, options?: MockModuleOptions): MockModuleContext;
|
|
1642
1643
|
/**
|
|
1643
1644
|
* This function restores the default behavior of all mocks that were previously
|
|
1644
1645
|
* created by this `MockTracker` and disassociates the mocks from the `MockTracker` instance. Once disassociated, the mocks can still be used, but the `MockTracker` instance can no longer be
|
node v22.19/tls.d.ts
CHANGED
|
@@ -15,31 +15,31 @@ declare module "tls" {
|
|
|
15
15
|
import * as stream from "stream";
|
|
16
16
|
const CLIENT_RENEG_LIMIT: number;
|
|
17
17
|
const CLIENT_RENEG_WINDOW: number;
|
|
18
|
-
interface Certificate {
|
|
18
|
+
interface Certificate extends NodeJS.Dict<string | string[]> {
|
|
19
19
|
/**
|
|
20
20
|
* Country code.
|
|
21
21
|
*/
|
|
22
|
-
C
|
|
22
|
+
C?: string | string[];
|
|
23
23
|
/**
|
|
24
24
|
* Street.
|
|
25
25
|
*/
|
|
26
|
-
ST
|
|
26
|
+
ST?: string | string[];
|
|
27
27
|
/**
|
|
28
28
|
* Locality.
|
|
29
29
|
*/
|
|
30
|
-
L
|
|
30
|
+
L?: string | string[];
|
|
31
31
|
/**
|
|
32
32
|
* Organization.
|
|
33
33
|
*/
|
|
34
|
-
O
|
|
34
|
+
O?: string | string[];
|
|
35
35
|
/**
|
|
36
36
|
* Organizational unit.
|
|
37
37
|
*/
|
|
38
|
-
OU
|
|
38
|
+
OU?: string | string[];
|
|
39
39
|
/**
|
|
40
40
|
* Common name.
|
|
41
41
|
*/
|
|
42
|
-
CN
|
|
42
|
+
CN?: string | string[];
|
|
43
43
|
}
|
|
44
44
|
interface PeerCertificate {
|
|
45
45
|
/**
|