@types/node 20.11.13 → 20.11.15

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 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: Tue, 30 Jan 2024 23:07:03 GMT
11
+ * Last updated: Thu, 01 Feb 2024 09:07: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.LookupAllOptions,
22
- callback: (err: NodeJS.ErrnoException | null, addresses: dns.LookupAddress[]) => void,
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.13",
3
+ "version": "20.11.15",
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": "24c5c944aa13a9116b098c65a139b5511cc45f4e99d6128492111ef3b42f5447",
227
+ "typesPublisherContentHash": "762b670ac874555ed2485677879075b189f868bac237e12dd4e80481f11dec1a",
228
228
  "typeScriptVersion": "4.6"
229
229
  }
node/tls.d.ts CHANGED
@@ -220,7 +220,7 @@ declare module "tls" {
220
220
  /**
221
221
  * Construct a new tls.TLSSocket object from an existing TCP socket.
222
222
  */
223
- constructor(socket: net.Socket, options?: TLSSocketOptions);
223
+ constructor(socket: net.Socket | stream.Duplex, options?: TLSSocketOptions);
224
224
  /**
225
225
  * This property is `true` if the peer certificate was signed by one of the CAs
226
226
  * specified when creating the `tls.TLSSocket` instance, otherwise `false`.
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.LookupAllOptions,
22
- callback: (err: NodeJS.ErrnoException | null, addresses: dns.LookupAddress[]) => void,
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/tls.d.ts CHANGED
@@ -220,7 +220,7 @@ declare module "tls" {
220
220
  /**
221
221
  * Construct a new tls.TLSSocket object from an existing TCP socket.
222
222
  */
223
- constructor(socket: net.Socket, options?: TLSSocketOptions);
223
+ constructor(socket: net.Socket | stream.Duplex, options?: TLSSocketOptions);
224
224
  /**
225
225
  * This property is `true` if the peer certificate was signed by one of the CAs
226
226
  * specified when creating the `tls.TLSSocket` instance, otherwise `false`.