@augment-vir/core 31.71.1 → 31.71.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.
@@ -1,4 +1,3 @@
1
- import { type ArrayElement } from '../array/array.js';
2
1
  import { type CompleteRequire } from './required-keys.js';
3
2
  /**
4
3
  * Gets the value types of an object with all parts of that object required.
@@ -11,11 +10,13 @@ export type CompleteValues<T> = CompleteRequire<T>[keyof T];
11
10
  /**
12
11
  * Gets the value types of an object.
13
12
  *
13
+ * Do NOT use this on arrays, it will return incorrect values. Instead, use `ArrayElement`.
14
+ *
14
15
  * @category Object
15
16
  * @category Package : @augment-vir/common
16
17
  * @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common)
17
18
  */
18
- export type Values<T> = T extends ReadonlyArray<unknown> ? ArrayElement<T> : T[keyof T];
19
+ export type Values<T> = T[keyof T];
19
20
  /**
20
21
  * Gets the value within an object when all its keys are required.
21
22
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@augment-vir/core",
3
- "version": "31.71.1",
3
+ "version": "31.71.2",
4
4
  "description": "Core augment-vir augments. Use @augment-vir/common instead.",
5
5
  "homepage": "https://github.com/electrovir/augment-vir",
6
6
  "bugs": {