@augment-vir/assert 31.2.1 → 31.4.0
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.
|
@@ -2,7 +2,7 @@ import { type MaybePromise, type NarrowToExpected, type RequiredKeysOf } from '@
|
|
|
2
2
|
import { type SetRequired } from 'type-fest';
|
|
3
3
|
import { type WaitUntilOptions } from '../guard-types/wait-until-function.js';
|
|
4
4
|
/** Helper type for `hasKey`. */
|
|
5
|
-
type ExtractValue<Key extends PropertyKey, Parent> = Key extends keyof Parent ? SetRequired<Parent, Key>[Key] : Key extends keyof Extract<Parent, Record<Key, any>> ? SetRequired<Extract<Parent, Record<Key, any>>, Key>[Key] : never;
|
|
5
|
+
type ExtractValue<Key extends PropertyKey, Parent> = Key extends keyof Parent ? Key extends keyof SetRequired<Parent, Key> ? SetRequired<Parent, Key>[Key] : never : Key extends keyof Extract<Parent, Record<Key, any>> ? Key extends keyof SetRequired<Extract<Parent, Record<Key, any>>, Key> ? SetRequired<Extract<Parent, Record<Key, any>>, Key>[Key] : never : never;
|
|
6
6
|
/** Helper type for `hasKey`. */
|
|
7
7
|
type CombinedParentValue<Key extends PropertyKey, Parent> = ExtractValue<Key, Parent> extends never ? unknown : ExtractValue<Key, Parent>;
|
|
8
8
|
/** Helper type for `hasKey`. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@augment-vir/assert",
|
|
3
|
-
"version": "31.
|
|
3
|
+
"version": "31.4.0",
|
|
4
4
|
"description": "A collection of assertions for test and production code alike.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"augment",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"test:update": "npm test"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@augment-vir/core": "^31.
|
|
45
|
-
"@date-vir/duration": "^7.
|
|
44
|
+
"@augment-vir/core": "^31.4.0",
|
|
45
|
+
"@date-vir/duration": "^7.1.1",
|
|
46
46
|
"deep-eql": "^5.0.2",
|
|
47
47
|
"expect-type": "^1.1.0",
|
|
48
|
-
"type-fest": "^4.
|
|
48
|
+
"type-fest": "^4.31.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/deep-eql": "^4.0.2",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"@web/test-runner-commands": "^0.9.0",
|
|
55
55
|
"@web/test-runner-playwright": "^0.11.0",
|
|
56
56
|
"@web/test-runner-visual-regression": "^0.10.0",
|
|
57
|
-
"c8": "^10.1.
|
|
57
|
+
"c8": "^10.1.3",
|
|
58
58
|
"istanbul-smart-text-reporter": "^1.1.5",
|
|
59
|
-
"typescript": "^5.
|
|
59
|
+
"typescript": "^5.7.2"
|
|
60
60
|
},
|
|
61
61
|
"engines": {
|
|
62
62
|
"node": ">=22"
|