@augment-vir/common 13.5.0 → 14.0.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.
|
@@ -9,6 +9,11 @@ export type DeepWriteable<T> = {
|
|
|
9
9
|
};
|
|
10
10
|
/** Replace properties in T with properties in U. */
|
|
11
11
|
export type Overwrite<T, U> = Pick<T, Exclude<keyof T, keyof U>> & U;
|
|
12
|
+
/**
|
|
13
|
+
* Require that the NonVoid parameter is not void. If it is void, the ErrorType or an error string
|
|
14
|
+
* type is returned. If it not void, the given SuccessType is returned.
|
|
15
|
+
*/
|
|
16
|
+
export type RequireNonVoid<NonVoid, SuccessType, ErrorType = 'Input should not be void'> = void extends NonVoid ? (NonVoid extends void ? ErrorType : SuccessType) : SuccessType;
|
|
12
17
|
/** Extract the element type out of an array type. */
|
|
13
18
|
export type ArrayElement<ArrayType extends ReadonlyArray<any>> = ArrayType[number];
|
|
14
19
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@augment-vir/common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.1",
|
|
4
4
|
"homepage": "https://github.com/electrovir/augment-vir/tree/main/packages/common",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/electrovir/augment-vir/issues"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"test:types": "tsc --noEmit"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"type-fest": "^3.
|
|
27
|
+
"type-fest": "^3.10.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"typescript": "^5.0.4"
|