@types/node 20.11.14 → 20.11.16
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 +2 -2
- node/package.json +2 -2
- node/ts4.8/crypto.d.ts +3 -2
- node/ts4.8/net.d.ts +2 -2
- node/ts4.8/util.d.ts +1 -1
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: Thu, 01 Feb 2024 17:35:23 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
node/net.d.ts
CHANGED
|
@@ -18,8 +18,8 @@ declare module "net" {
|
|
|
18
18
|
import * as dns from "node:dns";
|
|
19
19
|
type LookupFunction = (
|
|
20
20
|
hostname: string,
|
|
21
|
-
options: dns.
|
|
22
|
-
callback: (err: NodeJS.ErrnoException | null,
|
|
21
|
+
options: dns.LookupOptions,
|
|
22
|
+
callback: (err: NodeJS.ErrnoException | null, address: string | dns.LookupAddress[], family?: number) => void,
|
|
23
23
|
) => void;
|
|
24
24
|
interface AddressInfo {
|
|
25
25
|
address: string;
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "20.11.
|
|
3
|
+
"version": "20.11.16",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -224,6 +224,6 @@
|
|
|
224
224
|
"dependencies": {
|
|
225
225
|
"undici-types": "~5.26.4"
|
|
226
226
|
},
|
|
227
|
-
"typesPublisherContentHash": "
|
|
227
|
+
"typesPublisherContentHash": "c74616c0dddd05b588f3fe3d0da870cc1928ca91bb661c07bccd1d41c3058b05",
|
|
228
228
|
"typeScriptVersion": "4.6"
|
|
229
229
|
}
|
node/ts4.8/crypto.d.ts
CHANGED
|
@@ -3530,12 +3530,13 @@ declare module "crypto" {
|
|
|
3530
3530
|
*/
|
|
3531
3531
|
disableEntropyCache?: boolean | undefined;
|
|
3532
3532
|
}
|
|
3533
|
+
type UUID = `${string}-${string}-${string}-${string}-${string}`;
|
|
3533
3534
|
/**
|
|
3534
3535
|
* Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a
|
|
3535
3536
|
* cryptographic pseudorandom number generator.
|
|
3536
3537
|
* @since v15.6.0, v14.17.0
|
|
3537
3538
|
*/
|
|
3538
|
-
function randomUUID(options?: RandomUUIDOptions):
|
|
3539
|
+
function randomUUID(options?: RandomUUIDOptions): UUID;
|
|
3539
3540
|
interface X509CheckOptions {
|
|
3540
3541
|
/**
|
|
3541
3542
|
* @default 'always'
|
|
@@ -4094,7 +4095,7 @@ declare module "crypto" {
|
|
|
4094
4095
|
* The UUID is generated using a cryptographic pseudorandom number generator.
|
|
4095
4096
|
* @since v16.7.0
|
|
4096
4097
|
*/
|
|
4097
|
-
randomUUID():
|
|
4098
|
+
randomUUID(): UUID;
|
|
4098
4099
|
CryptoKey: CryptoKeyConstructor;
|
|
4099
4100
|
}
|
|
4100
4101
|
// This constructor throws ILLEGAL_CONSTRUCTOR so it should not be newable.
|
node/ts4.8/net.d.ts
CHANGED
|
@@ -18,8 +18,8 @@ declare module "net" {
|
|
|
18
18
|
import * as dns from "node:dns";
|
|
19
19
|
type LookupFunction = (
|
|
20
20
|
hostname: string,
|
|
21
|
-
options: dns.
|
|
22
|
-
callback: (err: NodeJS.ErrnoException | null,
|
|
21
|
+
options: dns.LookupOptions,
|
|
22
|
+
callback: (err: NodeJS.ErrnoException | null, address: string | dns.LookupAddress[], family?: number) => void,
|
|
23
23
|
) => void;
|
|
24
24
|
interface AddressInfo {
|
|
25
25
|
address: string;
|
node/ts4.8/util.d.ts
CHANGED
|
@@ -1602,7 +1602,7 @@ declare module "util" {
|
|
|
1602
1602
|
* Each item of the iterator is a JavaScript `Array`. The first item of the array
|
|
1603
1603
|
* is the `name`, the second item of the array is the `value`.
|
|
1604
1604
|
*/
|
|
1605
|
-
entries(): IterableIterator<[string, string]>;
|
|
1605
|
+
entries(): IterableIterator<[name: string, value: string]>;
|
|
1606
1606
|
/**
|
|
1607
1607
|
* Returns the value of the first name-value pair whose name is `name`. If there
|
|
1608
1608
|
* are no such pairs, `null` is returned.
|