@types/node 20.17.31 → 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: Fri, 25 Apr 2025 06:39:35 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.17.31",
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": "e970c2c5a2155536b73b743dd495c7ee7640d8bf183e27b8ba2c2592373a14f0",
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.