@types/node 20.17.30 → 20.17.32

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: Mon, 28 Apr 2025 06:43:21 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.32",
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": "ac6f6b3ae845f232a487fc7d63f4c93d3a68ede239956f86f19f860d36d0fdb8",
219
219
  "typeScriptVersion": "5.1"
220
220
  }
node v20.17/tls.d.ts CHANGED
@@ -398,6 +398,14 @@ declare module "tls" {
398
398
  },
399
399
  callback: (err: Error | null) => void,
400
400
  ): undefined | boolean;
401
+ /**
402
+ * The `tlsSocket.setKeyCert()` method sets the private key and certificate to use for the socket.
403
+ * This is mainly useful if you wish to select a server certificate from a TLS server's `ALPNCallback`.
404
+ * @since v22.5.0, v20.17.0
405
+ * @param context An object containing at least `key` and `cert` properties from the {@link createSecureContext()} `options`,
406
+ * or a TLS context object created with {@link createSecureContext()} itself.
407
+ */
408
+ setKeyCert(context: SecureContextOptions | SecureContext): void;
401
409
  /**
402
410
  * The `tlsSocket.setMaxSendFragment()` method sets the maximum TLS fragment size.
403
411
  * Returns `true` if setting the limit succeeded; `false` otherwise.
@@ -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