@kakasoo/deep-strict-types 1.0.28 → 1.0.30
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/bin/src/functions/DeepStrictAssert.d.ts +4 -0
- package/bin/src/functions/DeepStrictAssert.d.ts.map +1 -0
- package/bin/src/functions/DeepStrictAssert.js.map +1 -0
- package/bin/src/functions/DeepStrictObjectKeys.d.ts +9 -0
- package/bin/src/functions/DeepStrictObjectKeys.d.ts.map +1 -0
- package/bin/src/functions/DeepStrictObjectKeys.js +20 -0
- package/bin/src/functions/DeepStrictObjectKeys.js.map +1 -0
- package/bin/src/functions/index.d.ts +3 -0
- package/bin/src/functions/index.d.ts.map +1 -0
- package/bin/src/functions/index.js +19 -0
- package/bin/src/functions/index.js.map +1 -0
- package/bin/src/index.d.ts +2 -18
- package/bin/src/index.d.ts.map +1 -1
- package/bin/src/index.js +2 -18
- package/bin/src/index.js.map +1 -1
- package/bin/src/types/DeepStrictMerge.d.ts +31 -0
- package/bin/src/types/DeepStrictMerge.d.ts.map +1 -0
- package/bin/src/types/DeepStrictMerge.js +3 -0
- package/bin/src/types/DeepStrictMerge.js.map +1 -0
- package/bin/src/types/DeepStrictObjectKeys.d.ts +8 -4
- package/bin/src/types/DeepStrictObjectKeys.d.ts.map +1 -1
- package/bin/src/types/DeepStrictUnbrand.d.ts +1 -1
- package/bin/src/types/DeepStrictUnbrand.d.ts.map +1 -1
- package/bin/src/types/index.d.ts +19 -0
- package/bin/src/types/index.d.ts.map +1 -0
- package/bin/src/types/index.js +35 -0
- package/bin/src/types/index.js.map +1 -0
- package/package.json +2 -2
- package/bin/src/DeepStrictAssert.d.ts +0 -4
- package/bin/src/DeepStrictAssert.d.ts.map +0 -1
- package/bin/src/DeepStrictAssert.js.map +0 -1
- /package/bin/src/{DeepStrictAssert.js → functions/DeepStrictAssert.js} +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DeepStrictObjectKeys } from '../types/DeepStrictObjectKeys';
|
|
2
|
+
import { DeepStrictPick } from '../types/DeepStrictPick';
|
|
3
|
+
export declare const deepStrictAssert: <T extends object>(input: T) => <K extends DeepStrictObjectKeys<T>>(key: K) => DeepStrictPick<T, K>;
|
|
4
|
+
//# sourceMappingURL=DeepStrictAssert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeepStrictAssert.d.ts","sourceRoot":"","sources":["../../../src/functions/DeepStrictAssert.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,eAAO,MAAM,gBAAgB,GAC1B,CAAC,SAAS,MAAM,SAAS,CAAC,MAC1B,CAAC,SAAS,oBAAoB,CAAC,CAAC,CAAC,OAAO,CAAC,KAAG,cAAc,CAAC,CAAC,EAAE,CAAC,CAiC/D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeepStrictAssert.js","sourceRoot":"","sources":["../../../src/functions/DeepStrictAssert.ts"],"names":[],"mappings":";;;AAGO,MAAM,gBAAgB,GAC3B,CAAmB,KAAQ,EAAE,EAAE,CAC/B,CAAoC,GAAM,EAAwB,EAAE;IAClE,MAAM,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAEzD,MAAM,QAAQ,GAAG,CAAC,KAAkD,EAAE,IAAc,EAAO,EAAE;QAC3F,MAAM,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;QAE9B,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;YAC3B,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;gBACrC,IAAI,KAAK,IAAI,OAAO,EAAE,CAAC;oBACrB,IAAI,OAAO,OAAO,CAAC,KAAK,CAAC,KAAK,QAAQ,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC;wBAClE,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC;oBACrD,CAAC;oBAED,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;gBACrC,CAAC;gBAED,OAAO,OAAO,CAAC;YACjB,CAAC,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QAClB,CAAC;aAAM,CAAC;YACN,IAAI,KAAK,IAAI,KAAK,EAAE,CAAC;gBACnB,IAAI,OAAO,KAAK,CAAC,KAAK,CAAC,KAAK,QAAQ,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC;oBAC9D,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC;gBACnD,CAAC;gBACD,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;YACnC,CAAC;YAED,MAAM,IAAI,KAAK,CAAC,2BAA2B,KAAK,EAAE,CAAC,CAAC;QACtD,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAyB,CAAC;AACvD,CAAC,CAAC;AAnCS,QAAA,gBAAgB,oBAmCzB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DeepStrictObjectKeys } from '../types';
|
|
2
|
+
export declare function deepStrictObjectKeys<T extends object, Joiner extends {
|
|
3
|
+
array: string;
|
|
4
|
+
object: string;
|
|
5
|
+
} = {
|
|
6
|
+
array: '[*]';
|
|
7
|
+
object: '.';
|
|
8
|
+
}>(target: T, joiner?: Joiner): DeepStrictObjectKeys<T, Joiner, false>[];
|
|
9
|
+
//# sourceMappingURL=DeepStrictObjectKeys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeepStrictObjectKeys.d.ts","sourceRoot":"","sources":["../../../src/functions/DeepStrictObjectKeys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,wBAAgB,oBAAoB,CAClC,CAAC,SAAS,MAAM,EAChB,MAAM,SAAS;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,GAAG,CAAA;CAAE,EAChF,MAAM,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,oBAAoB,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,CAkBtE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deepStrictObjectKeys = deepStrictObjectKeys;
|
|
4
|
+
function deepStrictObjectKeys(target, joiner) {
|
|
5
|
+
if (joiner === undefined) {
|
|
6
|
+
joiner = { array: '[*]', object: '.' };
|
|
7
|
+
}
|
|
8
|
+
return Array.from(new Set(Object.entries(target).flatMap(([key, value]) => {
|
|
9
|
+
if (target instanceof Array) {
|
|
10
|
+
return deepStrictObjectKeys(value, joiner).map((el) => `${joiner.array}.${el}`);
|
|
11
|
+
}
|
|
12
|
+
else if (target !== null && typeof target === 'object') {
|
|
13
|
+
return deepStrictObjectKeys(value, joiner).flatMap((el) => `${joiner.object}.${el}`);
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
return [];
|
|
17
|
+
}
|
|
18
|
+
})));
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=DeepStrictObjectKeys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeepStrictObjectKeys.js","sourceRoot":"","sources":["../../../src/functions/DeepStrictObjectKeys.ts"],"names":[],"mappings":";;AAEA,oDAqBC;AArBD,SAAgB,oBAAoB,CAGlC,MAAS,EAAE,MAAe;IAC1B,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,MAAM,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAY,CAAC;IACnD,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CACf,IAAI,GAAG,CACL,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QAC9C,IAAI,MAAM,YAAY,KAAK,EAAE,CAAC;YAC5B,OAAO,oBAAoB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE,EAAE,CAAC,CAAC;QAClF,CAAC;aAAM,IAAI,MAAM,KAAK,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;YACzD,OAAO,oBAAoB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,IAAI,EAAE,EAAE,CAAC,CAAC;QACvF,CAAC;aAAM,CAAC;YACN,OAAO,EAAE,CAAC;QACZ,CAAC;IACH,CAAC,CAAC,CACH,CACmC,CAAC;AACzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/functions/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./DeepStrictAssert"), exports);
|
|
18
|
+
__exportStar(require("./DeepStrictObjectKeys"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/functions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,yDAAuC"}
|
package/bin/src/index.d.ts
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './types
|
|
3
|
-
export * from './types/DeepStrictObjectKeys';
|
|
4
|
-
export * from './types/DeepStrictObjectLastKeys';
|
|
5
|
-
export * from './types/DeepStrictOmit';
|
|
6
|
-
export * from './types/DeepStrictPick';
|
|
7
|
-
export * from './types/DeepStrictUnbrand';
|
|
8
|
-
export * from './types/ElementOf';
|
|
9
|
-
export * from './types/Equal';
|
|
10
|
-
export * from './types/GetMember';
|
|
11
|
-
export * from './types/GetType';
|
|
12
|
-
export * from './types/IsAny';
|
|
13
|
-
export * from './types/IsUnion';
|
|
14
|
-
export * from './types/RemoveAfterDot';
|
|
15
|
-
export * from './types/RemoveArraySymbol';
|
|
16
|
-
export * from './types/RemoveLastProperty';
|
|
17
|
-
export * from './types/StringToDeepObject';
|
|
18
|
-
export * from './types/ValueType';
|
|
1
|
+
export * from './functions';
|
|
2
|
+
export * from './types';
|
|
19
3
|
//# sourceMappingURL=index.d.ts.map
|
package/bin/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
package/bin/src/index.js
CHANGED
|
@@ -14,22 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./types
|
|
19
|
-
__exportStar(require("./types/DeepStrictObjectKeys"), exports);
|
|
20
|
-
__exportStar(require("./types/DeepStrictObjectLastKeys"), exports);
|
|
21
|
-
__exportStar(require("./types/DeepStrictOmit"), exports);
|
|
22
|
-
__exportStar(require("./types/DeepStrictPick"), exports);
|
|
23
|
-
__exportStar(require("./types/DeepStrictUnbrand"), exports);
|
|
24
|
-
__exportStar(require("./types/ElementOf"), exports);
|
|
25
|
-
__exportStar(require("./types/Equal"), exports);
|
|
26
|
-
__exportStar(require("./types/GetMember"), exports);
|
|
27
|
-
__exportStar(require("./types/GetType"), exports);
|
|
28
|
-
__exportStar(require("./types/IsAny"), exports);
|
|
29
|
-
__exportStar(require("./types/IsUnion"), exports);
|
|
30
|
-
__exportStar(require("./types/RemoveAfterDot"), exports);
|
|
31
|
-
__exportStar(require("./types/RemoveArraySymbol"), exports);
|
|
32
|
-
__exportStar(require("./types/RemoveLastProperty"), exports);
|
|
33
|
-
__exportStar(require("./types/StringToDeepObject"), exports);
|
|
34
|
-
__exportStar(require("./types/ValueType"), exports);
|
|
17
|
+
__exportStar(require("./functions"), exports);
|
|
18
|
+
__exportStar(require("./types"), exports);
|
|
35
19
|
//# sourceMappingURL=index.js.map
|
package/bin/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,0CAAwB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare namespace DeepStrictMerge {
|
|
2
|
+
/**
|
|
3
|
+
* @title Infer Type
|
|
4
|
+
*
|
|
5
|
+
* A helper type that recursively merges two object types, `Target` and `Source`, at the deepest level.
|
|
6
|
+
* This type is used internally to handle merging the properties of `Target` and `Source`.
|
|
7
|
+
*
|
|
8
|
+
* - If both `Target` and `Source` share a common key, their corresponding values are merged.
|
|
9
|
+
* - If the values are objects, they are merged recursively.
|
|
10
|
+
* - If the values are arrays, their elements are merged.
|
|
11
|
+
* - If an element of the array is not an object, merging is not possible.
|
|
12
|
+
*/
|
|
13
|
+
type Infer<Target extends object, Source extends object> = {
|
|
14
|
+
[key in keyof Target | keyof Source]: key extends keyof Target ? key extends keyof Source ? Target[key] extends object ? Source[key] extends object ? Target[key] extends Array<infer TE extends object> ? Source[key] extends Array<infer PE extends object> ? Array<Infer<TE, PE>> : never : Infer<Target[key], Source[key]> : Target[key] : Target[key] : Target[key] : key extends keyof Source ? key extends keyof Target ? Source[key] extends object ? Target[key] extends object ? Target[key] extends Array<infer TE extends object> ? Source[key] extends Array<infer PE extends object> ? Array<Infer<TE, PE>> : never : Infer<Target[key], Source[key]> : Source[key] : Source[key] : Source[key] : never;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @title DeepStrictMerge Type
|
|
19
|
+
*
|
|
20
|
+
* A type that deeply merges two object types, `Target` and `Source`.
|
|
21
|
+
* Nested objects are recursively merged, and in the case of array types, the elements of the arrays are merged into a new type.
|
|
22
|
+
*
|
|
23
|
+
* Merge Rules:
|
|
24
|
+
* 1. For object types, if both `Target` and `Source` have a common key, the value from `Target` takes precedence, and `Source` does not overwrite it.
|
|
25
|
+
* 2. For array types, if both `Target` and `Source` are arrays and their elements are objects, those elements are merged.
|
|
26
|
+
* - If the elements of the arrays are not objects, merging is not possible.
|
|
27
|
+
* 3. If only one of the types is an array, merging is not possible.
|
|
28
|
+
*/
|
|
29
|
+
export type DeepStrictMerge<Target extends object, Source extends object> = Target extends Array<infer TE extends object> ? Source extends Array<infer PE extends object> ? DeepStrictMerge.Infer<TE, PE>[] : never : DeepStrictMerge.Infer<Target, Source>;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=DeepStrictMerge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeepStrictMerge.d.ts","sourceRoot":"","sources":["../../../src/types/DeepStrictMerge.ts"],"names":[],"mappings":"AAAA,kBAAU,eAAe,CAAC;IACxB;;;;;;;;;;OAUG;IACH,KAAY,KAAK,CAAC,MAAM,SAAS,MAAM,EAAE,MAAM,SAAS,MAAM,IAAI;SAE/D,GAAG,IAAI,MAAM,MAAM,GAAG,MAAM,MAAM,GAAG,GAAG,SAAS,MAAM,MAAM,GAC1D,GAAG,SAAS,MAAM,MAAM,GACtB,MAAM,CAAC,GAAG,CAAC,SAAS,MAAM,GACxB,MAAM,CAAC,GAAG,CAAC,SAAS,MAAM,GACxB,MAAM,CAAC,GAAG,CAAC,SAAS,KAAK,CAAC,MAAM,EAAE,SAAS,MAAM,CAAC,GAChD,MAAM,CAAC,GA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
|
|
1
|
+
{"version":3,"file":"DeepStrictMerge.js","sourceRoot":"","sources":["../../../src/types/DeepStrictMerge.ts"],"names":[],"mappings":""}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { DeepStrictUnbrand } from './DeepStrictUnbrand';
|
|
2
|
+
import { Equal } from './Equal';
|
|
2
3
|
import type { IsAny } from './IsAny';
|
|
3
4
|
import type { IsUnion } from './IsUnion';
|
|
4
5
|
import type { ValueType } from './ValueType';
|
|
5
6
|
declare namespace DeepStrictObjectKeys {
|
|
6
|
-
type Infer<
|
|
7
|
+
type Infer<Target extends object, Joiner extends {
|
|
7
8
|
array: string;
|
|
8
9
|
object: string;
|
|
9
10
|
} = {
|
|
10
11
|
array: '[*]';
|
|
11
12
|
object: '.';
|
|
12
|
-
}, P extends keyof
|
|
13
|
+
}, IsSafe extends boolean = true, P extends keyof Target = keyof Target> = P extends string ? IsUnion<Target[P]> extends true ? Equal<IsSafe, true> extends true ? P : P | (Target[P] extends infer E ? E extends ValueType ? P : E extends object ? E extends Array<infer _Element extends object> ? `${P}${Joiner['array']}${Joiner['object']}${Infer<_Element, Joiner, IsSafe>}` : `${P}${Joiner['object']}${Infer<E, Joiner, IsSafe>}` : never : never) : Target[P] extends Array<infer Element extends object> ? P | `${P}${Joiner['array']}${Joiner['object']}${Infer<Element, Joiner, false>}` : Target[P] extends ValueType ? P : IsAny<Target[P]> extends true ? P : Target[P] extends object ? Target[P] extends Array<infer _Element> ? P : Target[P] extends Record<string, never> ? `${P}` : `${P}` | `${P}${Joiner['object']}${Infer<Target[P], Joiner, false>}` : never : never;
|
|
13
14
|
}
|
|
14
15
|
/**
|
|
15
16
|
* @title Type for Listing All Keys of Nested Objects or Arrays.
|
|
@@ -22,13 +23,16 @@ declare namespace DeepStrictObjectKeys {
|
|
|
22
23
|
* type Example1 = DeepStrictObjectKeys<{ a: { b: 1; c: 2 } }>; // "a" | "a.b" | "a.c"
|
|
23
24
|
* type Example2 = DeepStrictObjectKeys<{ a: { b: 1; c: { d: number }[] } }>; // "a" | "a.b" | "a.c" | "a.c[*].d"
|
|
24
25
|
* ```
|
|
26
|
+
* @template Target Destination type for which you want to pull a key
|
|
27
|
+
* @template Joiner It means what symbol to connect when recursively spinning superimposed types.
|
|
28
|
+
* @template IsSafe When a key is a combination type of a primitive type and an object, it means whether to perform a recursive search or not.
|
|
25
29
|
*/
|
|
26
|
-
export type DeepStrictObjectKeys<
|
|
30
|
+
export type DeepStrictObjectKeys<Target extends object, Joiner extends {
|
|
27
31
|
array: string;
|
|
28
32
|
object: string;
|
|
29
33
|
} = {
|
|
30
34
|
array: '[*]';
|
|
31
35
|
object: '.';
|
|
32
|
-
},
|
|
36
|
+
}, IsSafe extends boolean = true> = DeepStrictUnbrand<Target> extends Array<infer Element> ? Element extends object ? `${Joiner['array']}.${DeepStrictObjectKeys<Element, Joiner, IsSafe>}` : `${Joiner['array']}` : DeepStrictUnbrand<Target> extends readonly (infer Element)[] ? Element extends object ? `${Joiner['array']}.${DeepStrictObjectKeys<Element, Joiner, IsSafe>}` : `${Joiner['array']}` : DeepStrictObjectKeys.Infer<DeepStrictUnbrand<Target>, Joiner, IsSafe>;
|
|
33
37
|
export {};
|
|
34
38
|
//# sourceMappingURL=DeepStrictObjectKeys.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeepStrictObjectKeys.d.ts","sourceRoot":"","sources":["../../../src/types/DeepStrictObjectKeys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,kBAAU,oBAAoB,CAAC;IAC7B,KAAY,KAAK,CACf,
|
|
1
|
+
{"version":3,"file":"DeepStrictObjectKeys.d.ts","sour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,GACrE,GAAG,MAAM,CAAC,OAAO,CAAC,EAAE,GACtB,iBAAiB,CAAC,MAAM,CAAC,SAAS,SAAS,CAAC,MAAM,OAAO,CAAC,EAAE,GAC1D,OAAO,SAAS,MAAM,GACpB,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GACrE,GAAG,MAAM,CAAC,OAAO,CAAC,EAAE,GACtB,oBAAoB,CAAC,KAAK,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC"}
|
|
@@ -26,7 +26,7 @@ declare namespace DeepStrictUnbrand {
|
|
|
26
26
|
* type Example3 = DeepStrictUnbrand<Array<string & { __brand: 'email' }>>; // Array<string>
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
|
-
export type DeepStrictUnbrand<T> = T extends Array<Date> ? Array<Date> : T extends Array<infer I extends object> ? Array<DeepStrictUnbrand<I>> : T extends DeepStrictUnbrand.Primitive & NonNullable<unknown> ? DeepStrictUnbrand.Infer<T> : T extends Date ? T : {
|
|
29
|
+
export type DeepStrictUnbrand<T> = T extends [] ? [] : T extends Array<Date> ? Array<Date> : T extends Array<infer I extends object> ? Array<DeepStrictUnbrand<I>> : T extends DeepStrictUnbrand.Primitive & NonNullable<unknown> ? DeepStrictUnbrand.Infer<T> : T extends Date ? T : {
|
|
30
30
|
[K in keyof T]: T[K] extends object ? DeepStrictUnbrand<T[K]> : T[K];
|
|
31
31
|
};
|
|
32
32
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeepStrictUnbrand.d.ts","sourceRoot":"","sources":["../../../src/types/DeepStrictUnbrand.ts"],"names":[],"mappings":"AAAA,kBAAU,iBAAiB,CAAC;IAC1B,KAAY,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9E,KAAY,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AAE,GAAG,CAAC,GACjC,MAAM,GACN,CAAC,SAAS,IAAI,GAAG,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,GAC/B,IAAI,GACJ,CAAC,SAAS,SAAS,GAAG,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,GACpC,SAAS,GACT,CAAC,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,GAC3C,EAAE,GACF,CAAC,SAAS,KAAK,CAAC,IAAI,CAAC,GACnB,KAAK,CAAC,IAAI,CAAC,GACX,CAAC,SAAS,KAAK,CAAC,MAAM,CAAC,SAAS,MAAM,CAAC,GACrC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,GAC3B,CAAC,SAAS,iBAAiB,CAAC,SAAS,GAAG,WAAW,CAAC,OAAO,CAAC,GAC1D,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC,GAC1B,CAAC,SAAS,IAAI,GACZ,CAAC,GACD;KACG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAC/B,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GACvB,CAAC,CAAC,CAAC,CAAC;CACT,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export * from './DeepDateToString';
|
|
2
|
+
export * from './DeepStrictMerge';
|
|
3
|
+
export * from './DeepStrictObjectKeys';
|
|
4
|
+
export * from './DeepStrictObjectLastKeys';
|
|
5
|
+
export * from './DeepStrictOmit';
|
|
6
|
+
export * from './DeepStrictPick';
|
|
7
|
+
export * from './DeepStrictUnbrand';
|
|
8
|
+
export * from './ElementOf';
|
|
9
|
+
export * from './Equal';
|
|
10
|
+
export * from './GetMember';
|
|
11
|
+
export * from './GetType';
|
|
12
|
+
export * from './IsAny';
|
|
13
|
+
export * from './IsUnion';
|
|
14
|
+
export * from './RemoveAfterDot';
|
|
15
|
+
export * from './RemoveArraySymbol';
|
|
16
|
+
export * from './RemoveLastProperty';
|
|
17
|
+
export * from './StringToDeepObject';
|
|
18
|
+
export * from './ValueType';
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./DeepDateToString"), exports);
|
|
18
|
+
__exportStar(require("./DeepStrictMerge"), exports);
|
|
19
|
+
__exportStar(require("./DeepStrictObjectKeys"), exports);
|
|
20
|
+
__exportStar(require("./DeepStrictObjectLastKeys"), exports);
|
|
21
|
+
__exportStar(require("./DeepStrictOmit"), exports);
|
|
22
|
+
__exportStar(require("./DeepStrictPick"), exports);
|
|
23
|
+
__exportStar(require("./DeepStrictUnbrand"), exports);
|
|
24
|
+
__exportStar(require("./ElementOf"), exports);
|
|
25
|
+
__exportStar(require("./Equal"), exports);
|
|
26
|
+
__exportStar(require("./GetMember"), exports);
|
|
27
|
+
__exportStar(require("./GetType"), exports);
|
|
28
|
+
__exportStar(require("./IsAny"), exports);
|
|
29
|
+
__exportStar(require("./IsUnion"), exports);
|
|
30
|
+
__exportStar(require("./RemoveAfterDot"), exports);
|
|
31
|
+
__exportStar(require("./RemoveArraySymbol"), exports);
|
|
32
|
+
__exportStar(require("./RemoveLastProperty"), exports);
|
|
33
|
+
__exportStar(require("./StringToDeepObject"), exports);
|
|
34
|
+
__exportStar(require("./ValueType"), exports);
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,oDAAkC;AAClC,yDAAuC;AACvC,6DAA2C;AAC3C,mDAAiC;AACjC,mDAAiC;AACjC,sDAAoC;AACpC,8CAA4B;AAC5B,0CAAwB;AACxB,8CAA4B;AAC5B,4CAA0B;AAC1B,0CAAwB;AACxB,4CAA0B;AAC1B,mDAAiC;AACjC,sDAAoC;AACpC,uDAAqC;AACrC,uDAAqC;AACrC,8CAA4B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kakasoo/deep-strict-types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.30",
|
|
4
4
|
"description": "",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"prettier": "^3.4.2",
|
|
53
53
|
"rimraf": "^6.0.1",
|
|
54
54
|
"ts-patch": "^3.3.0",
|
|
55
|
-
"typescript": "
|
|
55
|
+
"typescript": "~5.7.3",
|
|
56
56
|
"typia": "^7.6.0"
|
|
57
57
|
},
|
|
58
58
|
"repository": {
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DeepStrictObjectKeys } from './types/DeepStrictObjectKeys';
|
|
2
|
-
import { DeepStrictPick } from './types/DeepStrictPick';
|
|
3
|
-
export declare const deepStrictAssert: <T extends object>(input: T) => <K extends DeepStrictObjectKeys<T>>(key: K) => DeepStrictPick<T, K>;
|
|
4
|
-
//# sourceMappingURL=DeepStrictAssert.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DeepStrictAssert.d.ts","sourceRoot":"","sources":["../../src/DeepStrictAssert.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,eAAO,MAAM,gBAAgB,GAC1B,CAAC,SAAS,MAAM,SAAS,CAAC,MAC1B,CAAC,SAAS,oBAAoB,CAAC,CAAC,CAAC,OAAO,CAAC,KAAG,cAAc,CAAC,CAAC,EAAE,CAAC,CAiC/D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DeepStrictAssert.js","sourceRoot":"","sources":["../../src/DeepStrictAssert.ts"],"names":[],"mappings":";;;AAGO,MAAM,gBAAgB,GAC3B,CAAm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