type-plus 4.0.0 → 4.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.
- package/cjs/array/index.d.ts +17 -17
- package/cjs/array/index.js +0 -17
- package/cjs/array/index.js.map +1 -1
- package/cjs/class/index.d.ts +1 -1
- package/cjs/class/index.js +0 -1
- package/cjs/class/index.js.map +1 -1
- package/cjs/function/index.d.ts +1 -1
- package/cjs/function/index.js +0 -11
- package/cjs/function/index.js.map +1 -1
- package/cjs/functional/index.d.ts +1 -1
- package/cjs/functional/index.js +0 -12
- package/cjs/functional/index.js.map +1 -1
- package/cjs/index.d.ts +3 -3
- package/cjs/index.js +0 -5
- package/cjs/index.js.map +1 -1
- package/cjs/math/index.d.ts +7 -7
- package/cjs/math/index.js +0 -17
- package/cjs/math/index.js.map +1 -1
- package/cjs/object/index.d.ts +18 -18
- package/cjs/object/index.js +0 -18
- package/cjs/object/index.js.map +1 -1
- package/cjs/predicates/CanAssign.d.ts +1 -1
- package/cjs/predicates/{isEmptyObject.d.ts → IsEmptyObject.d.ts} +0 -0
- package/cjs/predicates/{isEmptyObject.js → IsEmptyObject.js} +1 -1
- package/cjs/predicates/IsEmptyObject.js.map +1 -0
- package/cjs/predicates/index.d.ts +5 -5
- package/cjs/predicates/index.js +0 -5
- package/cjs/predicates/index.js.map +1 -1
- package/cjs/promise/index.d.ts +2 -2
- package/cjs/promise/index.js +0 -2
- package/cjs/promise/index.js.map +1 -1
- package/cjs/utils/index.d.ts +1 -1
- package/cjs/utils/index.js +0 -1
- package/cjs/utils/index.js.map +1 -1
- package/esm/array/index.js +0 -17
- package/esm/array/index.js.map +1 -1
- package/esm/class/index.js +0 -1
- package/esm/class/index.js.map +1 -1
- package/esm/function/index.js +1 -1
- package/esm/function/index.js.map +1 -1
- package/esm/functional/index.js +1 -2
- package/esm/functional/index.js.map +1 -1
- package/esm/index.js +0 -5
- package/esm/index.js.map +1 -1
- package/esm/math/index.js +1 -7
- package/esm/math/index.js.map +1 -1
- package/esm/object/index.js +0 -18
- package/esm/object/index.js.map +1 -1
- package/esm/predicates/IsEmptyObject.js +2 -0
- package/esm/predicates/IsEmptyObject.js.map +1 -0
- package/esm/predicates/index.js +0 -5
- package/esm/predicates/index.js.map +1 -1
- package/esm/promise/index.js +0 -2
- package/esm/promise/index.js.map +1 -1
- package/esm/utils/index.js +0 -1
- package/esm/utils/index.js.map +1 -1
- package/package.json +2 -1
- package/ts/array/index.ts +19 -19
- package/ts/binary/_binary.ts +1 -1
- package/ts/class/index.ts +1 -1
- package/ts/function/index.ts +1 -1
- package/ts/functional/ChainFn.ts +6 -6
- package/ts/functional/index.ts +2 -2
- package/ts/index.ts +3 -3
- package/ts/math/index.ts +7 -7
- package/ts/object/index.ts +35 -35
- package/ts/predicates/CanAssign.ts +1 -1
- package/ts/predicates/{isEmptyObject.spec.ts → IsEmptyObject.spec.ts} +0 -0
- package/ts/predicates/{isEmptyObject.ts → IsEmptyObject.ts} +0 -0
- package/ts/predicates/index.ts +17 -17
- package/ts/promise/index.ts +2 -2
- package/ts/types/index.ts +28 -28
- package/ts/utils/index.ts +2 -2
- package/cjs/predicates/isEmptyObject.js.map +0 -1
- package/esm/predicates/isEmptyObject.js +0 -2
- package/esm/predicates/isEmptyObject.js.map +0 -1
package/cjs/array/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
1
|
+
export type { CommonKeys, CommonPropKeys } from './CommonPropKeys';
|
|
2
|
+
export type { Concat } from './Concat';
|
|
3
|
+
export type { CreateTuple } from './CreateTuple';
|
|
4
|
+
export type { DropFirst } from './DropFirst';
|
|
5
|
+
export type { DropLast } from './DropLast';
|
|
6
|
+
export type { Filter } from './Filter';
|
|
7
|
+
export type { FindFirst, First } from './FindFirst';
|
|
8
|
+
export type { FindLast } from './FindLast';
|
|
9
|
+
export type { Head } from './Head';
|
|
10
|
+
export type { IntersectOfProps, MapToProp } from './IntersectOfProps';
|
|
11
|
+
export type { IsArray } from './IsArray';
|
|
12
12
|
export * from './literalArray';
|
|
13
|
-
export
|
|
13
|
+
export type { PadLeft } from './PadLeft';
|
|
14
14
|
export * from './reduceWhile';
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
15
|
+
export type { Reverse } from './Reverse';
|
|
16
|
+
export type { Some } from './Some';
|
|
17
|
+
export type { Tail } from './Tail';
|
|
18
|
+
export type { PropUnion, UnionOfProps } from './UnionOfProps';
|
|
19
|
+
export type { ArrayValue, UnionOfValues } from './UnionOfValues';
|
package/cjs/array/index.js
CHANGED
|
@@ -10,23 +10,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./CommonPropKeys"), exports);
|
|
14
|
-
__exportStar(require("./Concat"), exports);
|
|
15
|
-
__exportStar(require("./CreateTuple"), exports);
|
|
16
|
-
__exportStar(require("./DropFirst"), exports);
|
|
17
|
-
__exportStar(require("./DropLast"), exports);
|
|
18
|
-
__exportStar(require("./Filter"), exports);
|
|
19
|
-
__exportStar(require("./FindFirst"), exports);
|
|
20
|
-
__exportStar(require("./FindLast"), exports);
|
|
21
|
-
__exportStar(require("./Head"), exports);
|
|
22
|
-
__exportStar(require("./IntersectOfProps"), exports);
|
|
23
|
-
__exportStar(require("./IsArray"), exports);
|
|
24
13
|
__exportStar(require("./literalArray"), exports);
|
|
25
|
-
__exportStar(require("./PadLeft"), exports);
|
|
26
14
|
__exportStar(require("./reduceWhile"), exports);
|
|
27
|
-
__exportStar(require("./Reverse"), exports);
|
|
28
|
-
__exportStar(require("./Some"), exports);
|
|
29
|
-
__exportStar(require("./Tail"), exports);
|
|
30
|
-
__exportStar(require("./UnionOfProps"), exports);
|
|
31
|
-
__exportStar(require("./UnionOfValues"), exports);
|
|
32
15
|
//# sourceMappingURL=index.js.map
|
package/cjs/array/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/array/index.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/array/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAWA,iDAA8B;AAE9B,gDAA6B"}
|
package/cjs/class/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type { AnyConstructor } from './AnyConstructor';
|
|
2
2
|
export * from './isConstructor';
|
package/cjs/class/index.js
CHANGED
|
@@ -10,6 +10,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./AnyConstructor"), exports);
|
|
14
13
|
__exportStar(require("./isConstructor"), exports);
|
|
15
14
|
//# sourceMappingURL=index.js.map
|
package/cjs/class/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/class/index.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/class/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,kDAA+B"}
|
package/cjs/function/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type { AnyFunction } from './AnyFunction';
|
package/cjs/function/index.js
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./AnyFunction"), exports);
|
|
14
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/function/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/function/index.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type { ChainFn, EndoFn } from './ChainFn';
|
package/cjs/functional/index.js
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
// export * from './Maybe'
|
|
14
|
-
__exportStar(require("./ChainFn"), exports);
|
|
15
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/functional/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/functional/index.ts"],"names":[],"mappings":""}
|
package/cjs/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { required, requiredDeep } from 'unpartial';
|
|
|
2
2
|
export * from './array';
|
|
3
3
|
export * from './assertion';
|
|
4
4
|
export * from './class';
|
|
5
|
-
export
|
|
5
|
+
export type { ComposableTypes, NonComposableTypes } from './ComposableTypes';
|
|
6
6
|
export * from './function';
|
|
7
7
|
export * from './functional';
|
|
8
8
|
export * from './JSONTypes';
|
|
@@ -11,7 +11,7 @@ export * from './nodejs';
|
|
|
11
11
|
export * from './nominal-types';
|
|
12
12
|
export * from './object';
|
|
13
13
|
export * from './predicates';
|
|
14
|
-
export
|
|
14
|
+
export type { PrimitiveTypes } from './PrimitiveTypes';
|
|
15
15
|
export * from './promise';
|
|
16
|
-
export
|
|
16
|
+
export type { UnionKeys } from './UnionKeys';
|
|
17
17
|
export * from './utils';
|
package/cjs/index.js
CHANGED
|
@@ -18,7 +18,6 @@ Object.defineProperty(exports, "requiredDeep", { enumerable: true, get: function
|
|
|
18
18
|
__exportStar(require("./array"), exports);
|
|
19
19
|
__exportStar(require("./assertion"), exports);
|
|
20
20
|
__exportStar(require("./class"), exports);
|
|
21
|
-
__exportStar(require("./ComposableTypes"), exports);
|
|
22
21
|
__exportStar(require("./function"), exports);
|
|
23
22
|
__exportStar(require("./functional"), exports);
|
|
24
23
|
__exportStar(require("./JSONTypes"), exports);
|
|
@@ -27,11 +26,7 @@ __exportStar(require("./nodejs"), exports);
|
|
|
27
26
|
__exportStar(require("./nominal-types"), exports);
|
|
28
27
|
__exportStar(require("./object"), exports);
|
|
29
28
|
__exportStar(require("./predicates"), exports);
|
|
30
|
-
__exportStar(require("./PrimitiveTypes"), exports);
|
|
31
29
|
__exportStar(require("./promise"), exports);
|
|
32
|
-
// export * from './types/optional'
|
|
33
|
-
// export * from './types/required'
|
|
34
|
-
__exportStar(require("./UnionKeys"), exports);
|
|
35
30
|
__exportStar(require("./utils"), exports);
|
|
36
31
|
// export { types, types as T }
|
|
37
32
|
//# sourceMappingURL=index.js.map
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mCAAmC;AACnC,uCAAkD;AAAzC,qGAAA,QAAQ,OAAA;AAAE,yGAAA,YAAY,OAAA;AAC/B,0CAAuB;AACvB,8CAA2B;AAC3B,0CAAuB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mCAAmC;AACnC,uCAAkD;AAAzC,qGAAA,QAAQ,OAAA;AAAE,yGAAA,YAAY,OAAA;AAC/B,0CAAuB;AACvB,8CAA2B;AAC3B,0CAAuB;AAEvB,6CAA0B;AAC1B,+CAA4B;AAC5B,8CAA2B;AAC3B,yCAAsB;AACtB,2CAAwB;AACxB,kDAA+B;AAC/B,2CAAwB;AACxB,+CAA4B;AAE5B,4CAAyB;AAIzB,0CAAuB;AACvB,+BAA+B"}
|
package/cjs/math/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
1
|
+
export type { Abs } from './Abs';
|
|
2
|
+
export type { Add, Increment } from './Add';
|
|
3
|
+
export type { GreaterThan } from './GreaterThan';
|
|
4
|
+
export type { IsPositive } from './IsPositive';
|
|
5
|
+
export type { IsWhole } from './IsWhole';
|
|
6
|
+
export type { Max } from './Max';
|
|
7
|
+
export type { Decrement, Subtract } from './Subtract';
|
package/cjs/math/index.js
CHANGED
|
@@ -1,20 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./Abs"), exports);
|
|
14
|
-
__exportStar(require("./Add"), exports);
|
|
15
|
-
__exportStar(require("./GreaterThan"), exports);
|
|
16
|
-
__exportStar(require("./IsPositive"), exports);
|
|
17
|
-
__exportStar(require("./IsWhole"), exports);
|
|
18
|
-
__exportStar(require("./Max"), exports);
|
|
19
|
-
__exportStar(require("./Subtract"), exports);
|
|
20
3
|
//# sourceMappingURL=index.js.map
|
package/cjs/math/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/math/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/math/index.ts"],"names":[],"mappings":""}
|
package/cjs/object/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export * from './AnyRecord';
|
|
1
|
+
export type { ANotB, BNotA, LeftJoin } from './ANotB';
|
|
2
|
+
export type { AnyRecord } from './AnyRecord';
|
|
4
3
|
export * from './everyKey';
|
|
5
|
-
export
|
|
4
|
+
export type { ExcludePropType } from './ExcludePropType';
|
|
6
5
|
export * from './facade';
|
|
7
6
|
export * from './filterKey';
|
|
8
7
|
export * from './findKey';
|
|
@@ -10,25 +9,26 @@ export * from './forEachKey';
|
|
|
10
9
|
export * from './getField';
|
|
11
10
|
export * from './hasKey';
|
|
12
11
|
export * from './hasProperty';
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
12
|
+
export type { IsDisjoint } from './IsDisjoint';
|
|
13
|
+
export type { IsRecord } from './IsRecord';
|
|
14
|
+
export type { KeysOfOptional } from './KeyofOptional';
|
|
15
|
+
export type { KeysWithDiffType } from './KeysWithDiffType';
|
|
16
|
+
export type { KeyTypes } from './KeyTypes';
|
|
17
|
+
export type { KnownKeys } from './KnownKeys';
|
|
18
18
|
export * from './mapKey';
|
|
19
19
|
export * from './mapProperties';
|
|
20
20
|
export * from './omit';
|
|
21
|
-
export
|
|
22
|
-
export
|
|
21
|
+
export type { OptionalKeys } from './OptionalKeys';
|
|
22
|
+
export type { PartialOmit, PartialPick } from './Partial';
|
|
23
23
|
export * from './pick';
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
24
|
+
export type { RecursiveIntersect } from './RecursiveIntersect';
|
|
25
|
+
export type { RecursivePartial } from './RecursivePartial';
|
|
26
|
+
export type { RecursiveRequired } from './RecursiveRequired';
|
|
27
27
|
export * from './reduceKey';
|
|
28
28
|
export * from './replaceProperty';
|
|
29
|
-
export
|
|
30
|
-
export
|
|
29
|
+
export type { RequiredExcept, RequiredPick } from './Required';
|
|
30
|
+
export type { RequiredKeys } from './RequiredKeys';
|
|
31
31
|
export * from './someKey';
|
|
32
|
-
export
|
|
32
|
+
export type { SpreadRecord } from './SpreadRecord';
|
|
33
33
|
export * from './typeOverrideIncompatible';
|
|
34
|
-
export
|
|
34
|
+
export type { ValueOf } from './ValueOf';
|
package/cjs/object/index.js
CHANGED
|
@@ -10,11 +10,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("../object/IsDisjoint"), exports);
|
|
14
|
-
__exportStar(require("./ANotB"), exports);
|
|
15
|
-
__exportStar(require("./AnyRecord"), exports);
|
|
16
13
|
__exportStar(require("./everyKey"), exports);
|
|
17
|
-
__exportStar(require("./ExcludePropType"), exports);
|
|
18
14
|
__exportStar(require("./facade"), exports);
|
|
19
15
|
__exportStar(require("./filterKey"), exports);
|
|
20
16
|
__exportStar(require("./findKey"), exports);
|
|
@@ -22,26 +18,12 @@ __exportStar(require("./forEachKey"), exports);
|
|
|
22
18
|
__exportStar(require("./getField"), exports);
|
|
23
19
|
__exportStar(require("./hasKey"), exports);
|
|
24
20
|
__exportStar(require("./hasProperty"), exports);
|
|
25
|
-
__exportStar(require("./IsRecord"), exports);
|
|
26
|
-
__exportStar(require("./KeyofOptional"), exports);
|
|
27
|
-
__exportStar(require("./KeysWithDiffType"), exports);
|
|
28
|
-
__exportStar(require("./KeyTypes"), exports);
|
|
29
|
-
__exportStar(require("./KnownKeys"), exports);
|
|
30
21
|
__exportStar(require("./mapKey"), exports);
|
|
31
22
|
__exportStar(require("./mapProperties"), exports);
|
|
32
23
|
__exportStar(require("./omit"), exports);
|
|
33
|
-
__exportStar(require("./OptionalKeys"), exports);
|
|
34
|
-
__exportStar(require("./Partial"), exports);
|
|
35
24
|
__exportStar(require("./pick"), exports);
|
|
36
|
-
__exportStar(require("./RecursiveIntersect"), exports);
|
|
37
|
-
__exportStar(require("./RecursivePartial"), exports);
|
|
38
|
-
__exportStar(require("./RecursiveRequired"), exports);
|
|
39
25
|
__exportStar(require("./reduceKey"), exports);
|
|
40
26
|
__exportStar(require("./replaceProperty"), exports);
|
|
41
|
-
__exportStar(require("./Required"), exports);
|
|
42
|
-
__exportStar(require("./RequiredKeys"), exports);
|
|
43
27
|
__exportStar(require("./someKey"), exports);
|
|
44
|
-
__exportStar(require("./SpreadRecord"), exports);
|
|
45
28
|
__exportStar(require("./typeOverrideIncompatible"), exports);
|
|
46
|
-
__exportStar(require("./ValueOf"), exports);
|
|
47
29
|
//# sourceMappingURL=index.js.map
|
package/cjs/object/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/object/index.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/object/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,6CAA0B;AAE1B,2CAAwB;AACxB,8CAA2B;AAC3B,4CAAyB;AACzB,+CAA4B;AAC5B,6CAA0B;AAC1B,2CAAwB;AACxB,gDAA6B;AAO7B,2CAAwB;AACxB,kDAA+B;AAC/B,yCAAsB;AAGtB,yCAAsB;AAItB,8CAA2B;AAC3B,oDAAiC;AAGjC,4CAAyB;AAEzB,6DAA0C"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IsEmptyObject.js","sourceRoot":"","sources":["../../ts/predicates/IsEmptyObject.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export * from './CanAssign';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type { Equal, IsEqual, IsNotEqual, NotEqual } from './Equal';
|
|
3
|
+
export type { Extendable, IsExtend, IsNotExtend, NotExtendable } from './Extends';
|
|
4
|
+
export type { If } from './If';
|
|
5
5
|
export * from './isType';
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type { And, Not, Or, Xor } from './logical';
|
|
7
|
+
export type { IsEmptyObject } from './IsEmptyObject';
|
|
8
8
|
import { IsExtend } from './Extends';
|
|
9
9
|
export declare type IsLiteral<T extends number | string, Then = true, Else = false> = number extends T ? Else : string extends T ? Else : Then;
|
|
10
10
|
export declare type IsBoolean<T, Then = true, Else = false> = boolean extends T ? Then : Else;
|
package/cjs/predicates/index.js
CHANGED
|
@@ -11,10 +11,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./CanAssign"), exports);
|
|
14
|
-
__exportStar(require("./Equal"), exports);
|
|
15
|
-
__exportStar(require("./Extends"), exports);
|
|
16
|
-
__exportStar(require("./If"), exports);
|
|
17
14
|
__exportStar(require("./isType"), exports);
|
|
18
|
-
__exportStar(require("./logical"), exports);
|
|
19
|
-
__exportStar(require("./isEmptyObject"), exports);
|
|
20
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/predicates/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA2B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/predicates/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA2B;AAI3B,2CAAwB"}
|
package/cjs/promise/index.d.ts
CHANGED
package/cjs/promise/index.js
CHANGED
|
@@ -11,7 +11,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./isPromise"), exports);
|
|
14
|
-
__exportStar(require("./PromiseValue"), exports);
|
|
15
|
-
__exportStar(require("./PromiseValueMerge"), exports);
|
|
16
14
|
__exportStar(require("./mapSeries"), exports);
|
|
17
15
|
//# sourceMappingURL=index.js.map
|
package/cjs/promise/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/promise/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA2B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/promise/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA2B;AAG3B,8CAA2B"}
|
package/cjs/utils/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './as';
|
|
2
|
-
export
|
|
2
|
+
export type { Widen } from './Widen';
|
package/cjs/utils/index.js
CHANGED
|
@@ -11,5 +11,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./as"), exports);
|
|
14
|
-
__exportStar(require("./Widen"), exports);
|
|
15
14
|
//# sourceMappingURL=index.js.map
|
package/cjs/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAoB
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAoB"}
|
package/esm/array/index.js
CHANGED
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
export * from './CommonPropKeys';
|
|
2
|
-
export * from './Concat';
|
|
3
|
-
export * from './CreateTuple';
|
|
4
|
-
export * from './DropFirst';
|
|
5
|
-
export * from './DropLast';
|
|
6
|
-
export * from './Filter';
|
|
7
|
-
export * from './FindFirst';
|
|
8
|
-
export * from './FindLast';
|
|
9
|
-
export * from './Head';
|
|
10
|
-
export * from './IntersectOfProps';
|
|
11
|
-
export * from './IsArray';
|
|
12
1
|
export * from './literalArray';
|
|
13
|
-
export * from './PadLeft';
|
|
14
2
|
export * from './reduceWhile';
|
|
15
|
-
export * from './Reverse';
|
|
16
|
-
export * from './Some';
|
|
17
|
-
export * from './Tail';
|
|
18
|
-
export * from './UnionOfProps';
|
|
19
|
-
export * from './UnionOfValues';
|
|
20
3
|
//# sourceMappingURL=index.js.map
|
package/esm/array/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/array/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/array/index.ts"],"names":[],"mappings":"AAWA,cAAc,gBAAgB,CAAA;AAE9B,cAAc,eAAe,CAAA"}
|
package/esm/class/index.js
CHANGED
package/esm/class/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/class/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/class/index.ts"],"names":[],"mappings":"AACA,cAAc,iBAAiB,CAAA"}
|
package/esm/function/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/function/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/function/index.ts"],"names":[],"mappings":""}
|
package/esm/functional/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/functional/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/functional/index.ts"],"names":[],"mappings":""}
|
package/esm/index.js
CHANGED
|
@@ -3,7 +3,6 @@ export { required, requiredDeep } from 'unpartial';
|
|
|
3
3
|
export * from './array';
|
|
4
4
|
export * from './assertion';
|
|
5
5
|
export * from './class';
|
|
6
|
-
export * from './ComposableTypes';
|
|
7
6
|
export * from './function';
|
|
8
7
|
export * from './functional';
|
|
9
8
|
export * from './JSONTypes';
|
|
@@ -12,11 +11,7 @@ export * from './nodejs';
|
|
|
12
11
|
export * from './nominal-types';
|
|
13
12
|
export * from './object';
|
|
14
13
|
export * from './predicates';
|
|
15
|
-
export * from './PrimitiveTypes';
|
|
16
14
|
export * from './promise';
|
|
17
|
-
// export * from './types/optional'
|
|
18
|
-
// export * from './types/required'
|
|
19
|
-
export * from './UnionKeys';
|
|
20
15
|
export * from './utils';
|
|
21
16
|
// export { types, types as T }
|
|
22
17
|
//# sourceMappingURL=index.js.map
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAClD,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAClD,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AAEvB,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAE5B,cAAc,WAAW,CAAA;AAIzB,cAAc,SAAS,CAAA;AACvB,+BAA+B"}
|
package/esm/math/index.js
CHANGED
package/esm/math/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/math/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/math/index.ts"],"names":[],"mappings":""}
|
package/esm/object/index.js
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
export * from '../object/IsDisjoint';
|
|
2
|
-
export * from './ANotB';
|
|
3
|
-
export * from './AnyRecord';
|
|
4
1
|
export * from './everyKey';
|
|
5
|
-
export * from './ExcludePropType';
|
|
6
2
|
export * from './facade';
|
|
7
3
|
export * from './filterKey';
|
|
8
4
|
export * from './findKey';
|
|
@@ -10,26 +6,12 @@ export * from './forEachKey';
|
|
|
10
6
|
export * from './getField';
|
|
11
7
|
export * from './hasKey';
|
|
12
8
|
export * from './hasProperty';
|
|
13
|
-
export * from './IsRecord';
|
|
14
|
-
export * from './KeyofOptional';
|
|
15
|
-
export * from './KeysWithDiffType';
|
|
16
|
-
export * from './KeyTypes';
|
|
17
|
-
export * from './KnownKeys';
|
|
18
9
|
export * from './mapKey';
|
|
19
10
|
export * from './mapProperties';
|
|
20
11
|
export * from './omit';
|
|
21
|
-
export * from './OptionalKeys';
|
|
22
|
-
export * from './Partial';
|
|
23
12
|
export * from './pick';
|
|
24
|
-
export * from './RecursiveIntersect';
|
|
25
|
-
export * from './RecursivePartial';
|
|
26
|
-
export * from './RecursiveRequired';
|
|
27
13
|
export * from './reduceKey';
|
|
28
14
|
export * from './replaceProperty';
|
|
29
|
-
export * from './Required';
|
|
30
|
-
export * from './RequiredKeys';
|
|
31
15
|
export * from './someKey';
|
|
32
|
-
export * from './SpreadRecord';
|
|
33
16
|
export * from './typeOverrideIncompatible';
|
|
34
|
-
export * from './ValueOf';
|
|
35
17
|
//# sourceMappingURL=index.js.map
|
package/esm/object/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/object/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/object/index.ts"],"names":[],"mappings":"AAEA,cAAc,YAAY,CAAA;AAE1B,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAO7B,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,QAAQ,CAAA;AAGtB,cAAc,QAAQ,CAAA;AAItB,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AAGjC,cAAc,WAAW,CAAA;AAEzB,cAAc,4BAA4B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IsEmptyObject.js","sourceRoot":"","sources":["../../ts/predicates/IsEmptyObject.ts"],"names":[],"mappings":""}
|
package/esm/predicates/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/predicates/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/predicates/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAI3B,cAAc,UAAU,CAAA"}
|
package/esm/promise/index.js
CHANGED
package/esm/promise/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/promise/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/promise/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAG3B,cAAc,aAAa,CAAA"}
|
package/esm/utils/index.js
CHANGED
package/esm/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "type-plus",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "Provides additional types for `typescript`.",
|
|
5
5
|
"homepage": "https://github.com/unional/type-plus",
|
|
6
6
|
"bugs": {
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
"@babel/preset-typescript": "^7.16.7",
|
|
63
63
|
"@commitlint/cli": "^16.0.1",
|
|
64
64
|
"@commitlint/config-conventional": "^16.0.0",
|
|
65
|
+
"@semantic-release/changelog": "^6.0.1",
|
|
65
66
|
"@size-limit/preset-small-lib": "^7.0.5",
|
|
66
67
|
"@types/jest": "^27.4.0",
|
|
67
68
|
"@unional/fixture": "^1.7.2",
|
package/ts/array/index.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export * from './literalArray'
|
|
13
|
-
export
|
|
14
|
-
export * from './reduceWhile'
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
1
|
+
export type { CommonKeys, CommonPropKeys } from './CommonPropKeys'
|
|
2
|
+
export type { Concat } from './Concat'
|
|
3
|
+
export type { CreateTuple } from './CreateTuple'
|
|
4
|
+
export type { DropFirst } from './DropFirst'
|
|
5
|
+
export type { DropLast } from './DropLast'
|
|
6
|
+
export type { Filter } from './Filter'
|
|
7
|
+
export type { FindFirst, First } from './FindFirst'
|
|
8
|
+
export type { FindLast } from './FindLast'
|
|
9
|
+
export type { Head } from './Head'
|
|
10
|
+
export type { IntersectOfProps, MapToProp } from './IntersectOfProps'
|
|
11
|
+
export type { IsArray } from './IsArray'
|
|
12
|
+
export * from './literalArray'
|
|
13
|
+
export type { PadLeft } from './PadLeft'
|
|
14
|
+
export * from './reduceWhile'
|
|
15
|
+
export type { Reverse } from './Reverse'
|
|
16
|
+
export type { Some } from './Some'
|
|
17
|
+
export type { Tail } from './Tail'
|
|
18
|
+
export type { PropUnion, UnionOfProps } from './UnionOfProps'
|
|
19
|
+
export type { ArrayValue, UnionOfValues } from './UnionOfValues'
|
package/ts/binary/_binary.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type { Bit, BitAnd, BitNot, BitOr, BitXor } from './Bit'
|
package/ts/class/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type { AnyConstructor } from './AnyConstructor'
|
|
2
2
|
export * from './isConstructor'
|
package/ts/function/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type { AnyFunction } from './AnyFunction'
|
package/ts/functional/ChainFn.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export type ChainFn<T> = (param: T) => T
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* An endofunctor is a functor from one category back to the same category.
|
|
5
|
-
*/
|
|
6
|
-
export type EndoFn<T> = (param: T) => T
|
|
1
|
+
export type ChainFn<T> = (param: T) => T
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* An endofunctor is a functor from one category back to the same category.
|
|
5
|
+
*/
|
|
6
|
+
export type EndoFn<T> = (param: T) => T
|
package/ts/functional/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// export * from './Maybe'
|
|
2
|
-
export
|
|
1
|
+
// export * from './Maybe'
|
|
2
|
+
export type { ChainFn, EndoFn } from './ChainFn'
|
package/ts/index.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { required, requiredDeep } from 'unpartial'
|
|
|
3
3
|
export * from './array'
|
|
4
4
|
export * from './assertion'
|
|
5
5
|
export * from './class'
|
|
6
|
-
export
|
|
6
|
+
export type { ComposableTypes, NonComposableTypes } from './ComposableTypes'
|
|
7
7
|
export * from './function'
|
|
8
8
|
export * from './functional'
|
|
9
9
|
export * from './JSONTypes'
|
|
@@ -12,10 +12,10 @@ export * from './nodejs'
|
|
|
12
12
|
export * from './nominal-types'
|
|
13
13
|
export * from './object'
|
|
14
14
|
export * from './predicates'
|
|
15
|
-
export
|
|
15
|
+
export type { PrimitiveTypes } from './PrimitiveTypes'
|
|
16
16
|
export * from './promise'
|
|
17
17
|
// export * from './types/optional'
|
|
18
18
|
// export * from './types/required'
|
|
19
|
-
export
|
|
19
|
+
export type { UnionKeys } from './UnionKeys'
|
|
20
20
|
export * from './utils'
|
|
21
21
|
// export { types, types as T }
|
package/ts/math/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
1
|
+
export type { Abs } from './Abs'
|
|
2
|
+
export type { Add, Increment } from './Add'
|
|
3
|
+
export type { GreaterThan } from './GreaterThan'
|
|
4
|
+
export type { IsPositive } from './IsPositive'
|
|
5
|
+
export type { IsWhole } from './IsWhole'
|
|
6
|
+
export type { Max } from './Max'
|
|
7
|
+
export type { Decrement, Subtract } from './Subtract'
|
package/ts/object/index.ts
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export * from './
|
|
4
|
-
export
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export * from './mapKey'
|
|
19
|
-
export * from './mapProperties'
|
|
20
|
-
export * from './omit'
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export * from './pick'
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export * from './reduceKey'
|
|
28
|
-
export * from './replaceProperty'
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
-
export * from './someKey'
|
|
32
|
-
export
|
|
33
|
-
export * from './typeOverrideIncompatible'
|
|
34
|
-
export
|
|
35
|
-
|
|
1
|
+
export type { ANotB, BNotA, LeftJoin } from './ANotB'
|
|
2
|
+
export type { AnyRecord } from './AnyRecord'
|
|
3
|
+
export * from './everyKey'
|
|
4
|
+
export type { ExcludePropType } from './ExcludePropType'
|
|
5
|
+
export * from './facade'
|
|
6
|
+
export * from './filterKey'
|
|
7
|
+
export * from './findKey'
|
|
8
|
+
export * from './forEachKey'
|
|
9
|
+
export * from './getField'
|
|
10
|
+
export * from './hasKey'
|
|
11
|
+
export * from './hasProperty'
|
|
12
|
+
export type { IsDisjoint } from './IsDisjoint'
|
|
13
|
+
export type { IsRecord } from './IsRecord'
|
|
14
|
+
export type { KeysOfOptional } from './KeyofOptional'
|
|
15
|
+
export type { KeysWithDiffType } from './KeysWithDiffType'
|
|
16
|
+
export type { KeyTypes } from './KeyTypes'
|
|
17
|
+
export type { KnownKeys } from './KnownKeys'
|
|
18
|
+
export * from './mapKey'
|
|
19
|
+
export * from './mapProperties'
|
|
20
|
+
export * from './omit'
|
|
21
|
+
export type { OptionalKeys } from './OptionalKeys'
|
|
22
|
+
export type { PartialOmit, PartialPick } from './Partial'
|
|
23
|
+
export * from './pick'
|
|
24
|
+
export type { RecursiveIntersect } from './RecursiveIntersect'
|
|
25
|
+
export type { RecursivePartial } from './RecursivePartial'
|
|
26
|
+
export type { RecursiveRequired } from './RecursiveRequired'
|
|
27
|
+
export * from './reduceKey'
|
|
28
|
+
export * from './replaceProperty'
|
|
29
|
+
export type { RequiredExcept, RequiredPick } from './Required'
|
|
30
|
+
export type { RequiredKeys } from './RequiredKeys'
|
|
31
|
+
export * from './someKey'
|
|
32
|
+
export type { SpreadRecord } from './SpreadRecord'
|
|
33
|
+
export * from './typeOverrideIncompatible'
|
|
34
|
+
export type { ValueOf } from './ValueOf'
|
|
35
|
+
|
|
File without changes
|
|
File without changes
|
package/ts/predicates/index.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export * from './CanAssign'
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export * from './isType'
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
import { IsExtend } from './Extends'
|
|
10
|
-
|
|
11
|
-
export type IsLiteral<T extends number | string, Then = true, Else = false> = number extends T ?
|
|
12
|
-
Else :
|
|
13
|
-
string extends T ? Else : Then
|
|
14
|
-
|
|
15
|
-
export type IsBoolean<T, Then = true, Else = false> = boolean extends T ? Then : Else
|
|
16
|
-
|
|
17
|
-
export type IsAny<T, Then = true, Else = false> = boolean extends IsExtend<T, string> ? Then : Else
|
|
1
|
+
export * from './CanAssign'
|
|
2
|
+
export type { Equal, IsEqual, IsNotEqual, NotEqual } from './Equal'
|
|
3
|
+
export type { Extendable, IsExtend, IsNotExtend, NotExtendable } from './Extends'
|
|
4
|
+
export type { If } from './If'
|
|
5
|
+
export * from './isType'
|
|
6
|
+
export type { And, Not, Or, Xor } from './logical'
|
|
7
|
+
export type { IsEmptyObject } from './IsEmptyObject'
|
|
8
|
+
|
|
9
|
+
import { IsExtend } from './Extends'
|
|
10
|
+
|
|
11
|
+
export type IsLiteral<T extends number | string, Then = true, Else = false> = number extends T ?
|
|
12
|
+
Else :
|
|
13
|
+
string extends T ? Else : Then
|
|
14
|
+
|
|
15
|
+
export type IsBoolean<T, Then = true, Else = false> = boolean extends T ? Then : Else
|
|
16
|
+
|
|
17
|
+
export type IsAny<T, Then = true, Else = false> = boolean extends IsExtend<T, string> ? Then : Else
|
package/ts/promise/index.ts
CHANGED
package/ts/types/index.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A turing complete solution inspired by many.
|
|
3
|
-
* The types is in Pascal Cases
|
|
4
|
-
* because lower case type names (e.g. true) is a reserved keyword.
|
|
5
|
-
* https://github.com/microsoft/TypeScript/issues/14833
|
|
6
|
-
* https://github.com/tycho01/typical
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
// export * from './BigInt'
|
|
10
|
-
export
|
|
11
|
-
export * from './Any'
|
|
12
|
-
export * from './Array'
|
|
13
|
-
export * from './Boolean'
|
|
14
|
-
export * from './check'
|
|
15
|
-
export * from './conform'
|
|
16
|
-
export
|
|
17
|
-
export { nil as null, Null } from './Null'
|
|
18
|
-
export * from './Number'
|
|
19
|
-
export { keys, object, ObjectType as Object } from './Object'
|
|
20
|
-
export * from './Record'
|
|
21
|
-
export * from './satisfy'
|
|
22
|
-
export * from './String'
|
|
23
|
-
export * from './Symbol'
|
|
24
|
-
export * from './Tuple'
|
|
25
|
-
export * from './types'
|
|
26
|
-
export { undef as undefined, Undefined } from './Undefined'
|
|
27
|
-
export * from './Union'
|
|
28
|
-
export * from './Unknown'
|
|
1
|
+
/**
|
|
2
|
+
* A turing complete solution inspired by many.
|
|
3
|
+
* The types is in Pascal Cases
|
|
4
|
+
* because lower case type names (e.g. true) is a reserved keyword.
|
|
5
|
+
* https://github.com/microsoft/TypeScript/issues/14833
|
|
6
|
+
* https://github.com/tycho01/typical
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
// export * from './BigInt'
|
|
10
|
+
export type { AllType } from './AllType'
|
|
11
|
+
export * from './Any'
|
|
12
|
+
export * from './Array'
|
|
13
|
+
export * from './Boolean'
|
|
14
|
+
export * from './check'
|
|
15
|
+
export * from './conform'
|
|
16
|
+
export type { Generate } from './Generate'
|
|
17
|
+
export { nil as null, Null } from './Null'
|
|
18
|
+
export * from './Number'
|
|
19
|
+
export { keys, object, ObjectType as Object } from './Object'
|
|
20
|
+
export * from './Record'
|
|
21
|
+
export * from './satisfy'
|
|
22
|
+
export * from './String'
|
|
23
|
+
export * from './Symbol'
|
|
24
|
+
export * from './Tuple'
|
|
25
|
+
export * from './types'
|
|
26
|
+
export { undef as undefined, Undefined } from './Undefined'
|
|
27
|
+
export * from './Union'
|
|
28
|
+
export * from './Unknown'
|
package/ts/utils/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './as'
|
|
2
|
-
export
|
|
1
|
+
export * from './as'
|
|
2
|
+
export type { Widen } from './Widen'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isEmptyObject.js","sourceRoot":"","sources":["../../ts/predicates/isEmptyObject.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isEmptyObject.js","sourceRoot":"","sources":["../../ts/predicates/isEmptyObject.ts"],"names":[],"mappings":""}
|