@sohanemon/utils 6.4.5 → 6.4.6
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/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1301,7 +1301,7 @@ type TwoOf<T> = { [K in keyof T]: { [L in Exclude<keyof T, K>]: Pick<T, K | L> }
|
|
|
1301
1301
|
* type PrettyComplex = Prettify<Complex>; // Shows as { a: string; b: number }
|
|
1302
1302
|
* ```
|
|
1303
1303
|
*/
|
|
1304
|
-
type Prettify<T> = { [K in keyof
|
|
1304
|
+
type Prettify<T> = T extends infer U ? U extends object ? { [K in keyof U]: U[K] } & {} : U : never;
|
|
1305
1305
|
/**
|
|
1306
1306
|
* Extracts all nested keys of an object type as dot-separated strings.
|
|
1307
1307
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -381,7 +381,7 @@ type TwoOf<T> = { [K in keyof T]: { [L in Exclude<keyof T, K>]: Pick<T, K | L> }
|
|
|
381
381
|
* type PrettyComplex = Prettify<Complex>; // Shows as { a: string; b: number }
|
|
382
382
|
* ```
|
|
383
383
|
*/
|
|
384
|
-
type Prettify<T> = { [K in keyof
|
|
384
|
+
type Prettify<T> = T extends infer U ? U extends object ? { [K in keyof U]: U[K] } & {} : U : never;
|
|
385
385
|
/**
|
|
386
386
|
* Extracts all nested keys of an object type as dot-separated strings.
|
|
387
387
|
*
|