@types/node 24.0.11 → 24.0.13

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.
Files changed (4) hide show
  1. node/README.md +1 -1
  2. node/buffer.d.ts +3 -0
  3. node/http.d.ts +3 -18
  4. node/package.json +2 -2
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, 08 Jul 2025 17:03:33 GMT
11
+ * Last updated: Thu, 10 Jul 2025 19:02:57 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
node/buffer.d.ts CHANGED
@@ -1772,6 +1772,7 @@ declare module "buffer" {
1772
1772
  * @return The index of the first occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
1773
1773
  */
1774
1774
  indexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
1775
+ indexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number;
1775
1776
  /**
1776
1777
  * Identical to `buf.indexOf()`, except the last occurrence of `value` is found
1777
1778
  * rather than the first occurrence.
@@ -1840,6 +1841,7 @@ declare module "buffer" {
1840
1841
  * @return The index of the last occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
1841
1842
  */
1842
1843
  lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
1844
+ lastIndexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number;
1843
1845
  /**
1844
1846
  * Equivalent to `buf.indexOf() !== -1`.
1845
1847
  *
@@ -1870,6 +1872,7 @@ declare module "buffer" {
1870
1872
  * @return `true` if `value` was found in `buf`, `false` otherwise.
1871
1873
  */
1872
1874
  includes(value: string | number | Buffer, byteOffset?: number, encoding?: BufferEncoding): boolean;
1875
+ includes(value: string | number | Buffer, encoding: BufferEncoding): boolean;
1873
1876
  }
1874
1877
  var Buffer: BufferConstructor;
1875
1878
  /**
node/http.d.ts CHANGED
@@ -44,7 +44,7 @@ declare module "http" {
44
44
  import { URL } from "node:url";
45
45
  import { LookupOptions } from "node:dns";
46
46
  import { EventEmitter } from "node:events";
47
- import { LookupFunction, NetConnectOpts, Server as NetServer, Socket, TcpSocketConnectOpts } from "node:net";
47
+ import { LookupFunction, Server as NetServer, Socket, TcpSocketConnectOpts } from "node:net";
48
48
  // incoming headers will never contain number
49
49
  interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
50
50
  accept?: string | undefined;
@@ -1451,21 +1451,6 @@ declare module "http" {
1451
1451
  */
1452
1452
  scheduling?: "fifo" | "lifo" | undefined;
1453
1453
  }
1454
- interface AgentGetNameOptions {
1455
- /**
1456
- * A domain name or IP address of the server to issue the request to
1457
- */
1458
- host?: string | undefined;
1459
- /**
1460
- * Port of remote server
1461
- */
1462
- port?: number | undefined;
1463
- /**
1464
- * Local interface to bind for network connections when issuing the request
1465
- */
1466
- localAddress?: string | undefined;
1467
- family?: 4 | 6 | undefined;
1468
- }
1469
1454
  /**
1470
1455
  * An `Agent` is responsible for managing connection persistence
1471
1456
  * and reuse for HTTP clients. It maintains a queue of pending requests
@@ -1604,7 +1589,7 @@ declare module "http" {
1604
1589
  * @param callback Callback function that receives the created socket
1605
1590
  */
1606
1591
  createConnection(
1607
- options: NetConnectOpts,
1592
+ options: ClientRequestArgs,
1608
1593
  callback?: (err: Error | null, stream: stream.Duplex) => void,
1609
1594
  ): stream.Duplex;
1610
1595
  /**
@@ -1646,7 +1631,7 @@ declare module "http" {
1646
1631
  * @since v0.11.4
1647
1632
  * @param options A set of options providing information for name generation
1648
1633
  */
1649
- getName(options?: AgentGetNameOptions): string;
1634
+ getName(options?: ClientRequestArgs): string;
1650
1635
  }
1651
1636
  const METHODS: string[];
1652
1637
  const STATUS_CODES: {
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "24.0.11",
3
+ "version": "24.0.13",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -235,6 +235,6 @@
235
235
  "undici-types": "~7.8.0"
236
236
  },
237
237
  "peerDependencies": {},
238
- "typesPublisherContentHash": "b6cb2fa372b34f255958f4657fb38cec137a56fa12dc189ce01545d497a5cfd8",
238
+ "typesPublisherContentHash": "87f3760d7938b70e0ce621dcf56dd6a85be123eeda2c2c819a783a4b1b6b89d8",
239
239
  "typeScriptVersion": "5.1"
240
240
  }