@types/node 20.17.1 → 20.17.3

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 Oct 2024 12:43:47 GMT
11
+ * Last updated: Tue, 29 Oct 2024 17:02:26 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
node v20.17/crypto.d.ts CHANGED
@@ -609,11 +609,6 @@ declare module "crypto" {
609
609
  * @since v11.6.0
610
610
  */
611
611
  asymmetricKeyType?: KeyType | undefined;
612
- /**
613
- * For asymmetric keys, this property represents the size of the embedded key in
614
- * bytes. This property is `undefined` for symmetric keys.
615
- */
616
- asymmetricKeySize?: number | undefined;
617
612
  /**
618
613
  * This property exists only on asymmetric keys. Depending on the type of the key,
619
614
  * this object contains information about the key. None of the information obtained
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.17.1",
3
+ "version": "20.17.3",
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.19.2"
221
221
  },
222
222
  "peerDependencies": {},
223
- "typesPublisherContentHash": "b76751733a79938f7e78a1425b8fb5d1fb2bac8f121d0cc05e642361c9c1ce88",
223
+ "typesPublisherContentHash": "e138c8aac91c9e2a9ee62ceedbbaedf2bfd67e9d9745cbdc3ac2bc7d52a41261",
224
224
  "typeScriptVersion": "4.8"
225
225
  }
node v20.17/util.d.ts CHANGED
@@ -1517,15 +1517,23 @@ declare module "util" {
1517
1517
  string | boolean
1518
1518
  >;
1519
1519
 
1520
+ type ApplyOptionalModifiers<O extends ParseArgsOptionsConfig, V extends Record<keyof O, unknown>> = (
1521
+ & { -readonly [LongOption in keyof O]?: V[LongOption] }
1522
+ & { [LongOption in keyof O as O[LongOption]["default"] extends {} ? LongOption : never]: V[LongOption] }
1523
+ ) extends infer P ? { [K in keyof P]: P[K] } : never; // resolve intersection to object
1524
+
1520
1525
  type ParsedValues<T extends ParseArgsConfig> =
1521
1526
  & IfDefaultsTrue<T["strict"], unknown, { [longOption: string]: undefined | string | boolean }>
1522
- & (T["options"] extends ParseArgsOptionsConfig ? {
1523
- -readonly [LongOption in keyof T["options"]]: IfDefaultsFalse<
1524
- T["options"][LongOption]["multiple"],
1525
- undefined | Array<ExtractOptionValue<T, T["options"][LongOption]>>,
1526
- undefined | ExtractOptionValue<T, T["options"][LongOption]>
1527
- >;
1528
- }
1527
+ & (T["options"] extends ParseArgsOptionsConfig ? ApplyOptionalModifiers<
1528
+ T["options"],
1529
+ {
1530
+ [LongOption in keyof T["options"]]: IfDefaultsFalse<
1531
+ T["options"][LongOption]["multiple"],
1532
+ Array<ExtractOptionValue<T, T["options"][LongOption]>>,
1533
+ ExtractOptionValue<T, T["options"][LongOption]>
1534
+ >;
1535
+ }
1536
+ >
1529
1537
  : {});
1530
1538
 
1531
1539
  type ParsedPositionals<T extends ParseArgsConfig> = IfDefaultsTrue<