@kakasoo/deep-strict-types
Advanced tools
Comparing version 1.0.17 to 1.0.18
@@ -0,1 +1,2 @@ | ||
export * from './DeepStrictAssert'; | ||
export * from './types/DeepDateToString'; | ||
@@ -2,0 +3,0 @@ export * from './types/DeepStrictObjectKeys'; |
@@ -17,2 +17,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./DeepStrictAssert"), exports); | ||
__exportStar(require("./types/DeepDateToString"), exports); | ||
@@ -19,0 +20,0 @@ __exportStar(require("./types/DeepStrictObjectKeys"), exports); |
import { ElementOf } from './ElementOf'; | ||
export type RemoveAfterDot<T extends object, K extends string> = K extends `${infer First}.${infer Last}` ? First extends keyof T ? T[First] extends Array<any> ? `${First}[*].${string}` : T[First] extends object ? `${First}.${RemoveAfterDot<T[First], Last>}` : never : First extends '[*]' ? T extends Array<any> ? RemoveAfterDot<ElementOf<T>, Last> : never : First extends `${infer Second extends string}[*]` ? Second extends keyof T ? T[Second] extends object ? RemoveAfterDot<T[Second], Last> : never : never : never : K extends keyof T ? T[K] extends Array<any> ? `${K}[*].${string}` : `${K}.${string}` : never; | ||
export type RemoveAfterDot<T extends object, K extends string> = K extends `${infer First}.${infer Last}` ? First extends keyof T ? T[First] extends Array<any> ? `${First}[*].${string}` : T[First] extends object ? `${First}.${RemoveAfterDot<T[First], Last>}` : never : First extends '[*]' ? T extends Array<any> ? RemoveAfterDot<ElementOf<T>, Last> : never : First extends `${infer Second extends string}[*]` ? Second extends keyof T ? T[Second] extends object ? `${First}.${RemoveAfterDot<T[Second], Last>}` : never : never : never : K extends keyof T ? T[K] extends Array<any> ? `${K}[*].${string}` : `${K}.${string}` : T extends Array<any> ? RemoveAfterDot<ElementOf<T>, K> : never; | ||
//# sourceMappingURL=RemoveAfterDot.d.ts.map |
{ | ||
"name": "@kakasoo/deep-strict-types", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "private": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
42547
79
313