@types/node 20.17.30 → 20.17.31

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 v20.17/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/v20.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 01 Apr 2025 16:38:24 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
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.17.30",
3
+ "version": "20.17.31",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -215,6 +215,6 @@
215
215
  "undici-types": "~6.19.2"
216
216
  },
217
217
  "peerDependencies": {},
218
- "typesPublisherContentHash": "0475512c9c56bcf062679dadeea2661f3bd08ba32001740b64dd1c586a144796",
218
+ "typesPublisherContentHash": "e970c2c5a2155536b73b743dd495c7ee7640d8bf183e27b8ba2c2592373a14f0",
219
219
  "typeScriptVersion": "5.1"
220
220
  }
@@ -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