@types/node 22.15.1 → 22.15.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 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: Fri, 25 Apr 2025 03:41:26 GMT
11
+ * Last updated: Fri, 25 Apr 2025 06:39:35 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
node/buffer.buffer.d.ts CHANGED
@@ -160,6 +160,7 @@ declare module "buffer" {
160
160
  * @param encoding The encoding of `string`. **Default:** `'utf8'`.
161
161
  */
162
162
  from(string: WithImplicitCoercion<string>, encoding?: BufferEncoding): Buffer<ArrayBuffer>;
163
+ from(arrayOrString: WithImplicitCoercion<ArrayLike<number> | string>): Buffer<ArrayBuffer>;
163
164
  /**
164
165
  * Creates a new Buffer using the passed {data}
165
166
  * @param values to create a new Buffer
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "22.15.1",
3
+ "version": "22.15.2",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -220,6 +220,6 @@
220
220
  "undici-types": "~6.21.0"
221
221
  },
222
222
  "peerDependencies": {},
223
- "typesPublisherContentHash": "970d1ae49c76e5c7ad3abf9a7ad04b7f5ad3f9742b3ae970fbddee5210f11a37",
223
+ "typesPublisherContentHash": "d085d9c0d3e99c0e735cdf3c1c2fc6306151bce10b3b32f83e3e0b237544488a",
224
224
  "typeScriptVersion": "5.1"
225
225
  }
@@ -158,6 +158,7 @@ declare module "buffer" {
158
158
  * @param encoding The encoding of `string`. **Default:** `'utf8'`.
159
159
  */
160
160
  from(string: WithImplicitCoercion<string>, encoding?: BufferEncoding): Buffer;
161
+ from(arrayOrString: WithImplicitCoercion<ArrayLike<number> | string>): Buffer;
161
162
  /**
162
163
  * Creates a new Buffer using the passed {data}
163
164
  * @param values to create a new Buffer