@augment-vir/core 31.19.1 → 31.20.1
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.
|
@@ -32,6 +32,16 @@ export type SetRequiredAndNotNull<T, K extends keyof T> = Omit<T, K> & CompleteR
|
|
|
32
32
|
export type SetOptionalAndNullable<OriginalObjectGeneric, OptionalKeysGeneric extends keyof OriginalObjectGeneric> = Simplify<Except<OriginalObjectGeneric, OptionalKeysGeneric> & {
|
|
33
33
|
[PropKey in OptionalKeysGeneric]?: OriginalObjectGeneric[PropKey] | null | undefined;
|
|
34
34
|
}>;
|
|
35
|
+
/**
|
|
36
|
+
* Sets a key as optional but also potentially undefined.
|
|
37
|
+
*
|
|
38
|
+
* @category Object
|
|
39
|
+
* @category Package : @augment-vir/common
|
|
40
|
+
* @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common)
|
|
41
|
+
*/
|
|
42
|
+
export type SetOptionalWithUndefined<OriginalObjectGeneric, OptionalKeysGeneric extends keyof OriginalObjectGeneric> = Simplify<Except<OriginalObjectGeneric, OptionalKeysGeneric> & {
|
|
43
|
+
[PropKey in OptionalKeysGeneric]?: OriginalObjectGeneric[PropKey] | undefined;
|
|
44
|
+
}>;
|
|
35
45
|
/**
|
|
36
46
|
* Modified version of `RequiredKeys` from `type-fest` that does not require `BaseType` to extends
|
|
37
47
|
* `object`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@augment-vir/core",
|
|
3
|
-
"version": "31.
|
|
3
|
+
"version": "31.20.1",
|
|
4
4
|
"description": "Core augment-vir augments. Use @augment-vir/common instead.",
|
|
5
5
|
"homepage": "https://github.com/electrovir/augment-vir",
|
|
6
6
|
"bugs": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"type-fest": "^4.41.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@types/node": "^22.15.
|
|
37
|
+
"@types/node": "^22.15.21",
|
|
38
38
|
"c8": "^10.1.3",
|
|
39
39
|
"istanbul-smart-text-reporter": "^1.1.5",
|
|
40
40
|
"typescript": "^5.8.3"
|