@forklaunch/common
Advanced tools
@@ -17,2 +17,12 @@ /** | ||
| export type FlattenKeys<T> = keyof T; | ||
| /** | ||
| * A type that flattens an object type `T`. | ||
| * | ||
| * This utility type takes an object type `T` and recursively flattens it. | ||
| * | ||
| * @template T - The object type to flatten. | ||
| */ | ||
| export type Flatten<T> = T extends object ? { | ||
| [K in keyof T]: Flatten<T[K]>; | ||
| } : T; | ||
| //# sourceMappingURL=flatten.types.d.ts.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"flatten.types.d.ts","sourceRoot":"","sources":["../../../src/types/flatten.types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAE1C;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC"} | ||
| {"version":3,"file":"flatten.types.d.ts","sourceRoot":"","sources":["../../../src/types/flatten.types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAE1C;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC;AAErC;;;;;;GAMG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GACrC;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACjC,CAAC,CAAC"} |
+1
-1
| { | ||
| "name": "@forklaunch/common", | ||
| "version": "0.1.8", | ||
| "version": "0.1.9", | ||
| "description": "Common package for base types, interfaces, implementations.", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
98780
0.44%123
8.85%