@sprucelabs/test 7.7.386 → 7.7.387
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.
- package/build/assert.d.ts +4 -4
- package/build/esm/assert.d.ts +4 -4
- package/package.json +2 -2
package/build/assert.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { expectType } from 'ts-expect';
|
|
2
|
-
|
|
2
|
+
type RecursivePartial<T> = {
|
|
3
3
|
[P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object ? RecursivePartial<T[P]> : T[P];
|
|
4
4
|
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N;
|
|
6
|
+
type IsAny<T> = IfAny<T, true, never>;
|
|
7
|
+
type TypeEqual<T, U> = IsAny<T> extends never ? Exclude<T, U> extends never ? Exclude<U, T> extends never ? true : false : false : false;
|
|
8
8
|
declare function isExactType<T, E, Pass = TypeEqual<T, E>>(_: Pass): void;
|
|
9
9
|
export interface ISpruceAssert {
|
|
10
10
|
isNumber(actual: any, message?: string): asserts actual is number;
|
package/build/esm/assert.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { expectType } from 'ts-expect';
|
|
2
|
-
|
|
2
|
+
type RecursivePartial<T> = {
|
|
3
3
|
[P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object ? RecursivePartial<T[P]> : T[P];
|
|
4
4
|
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N;
|
|
6
|
+
type IsAny<T> = IfAny<T, true, never>;
|
|
7
|
+
type TypeEqual<T, U> = IsAny<T> extends never ? Exclude<T, U> extends never ? Exclude<U, T> extends never ? true : false : false : false;
|
|
8
8
|
declare function isExactType<T, E, Pass = TypeEqual<T, E>>(_: Pass): void;
|
|
9
9
|
export interface ISpruceAssert {
|
|
10
10
|
isNumber(actual: any, message?: string): asserts actual is number;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "7.7.
|
|
6
|
+
"version": "7.7.387",
|
|
7
7
|
"skill": {
|
|
8
8
|
"namespace": "spruce-test",
|
|
9
9
|
"upgradeIgnoreList": [
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"lodash": "^4.17.21",
|
|
76
76
|
"ts-expect": "^1.3.0",
|
|
77
77
|
"ts-jest": "next",
|
|
78
|
-
"typescript": "^4.
|
|
78
|
+
"typescript": "^4.9.3",
|
|
79
79
|
"variable-diff": "^2.0.2"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|