topkat-utils 1.2.54 → 1.2.55
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.
|
@@ -101,7 +101,7 @@ export declare function flattenObject(data: any, config?: {
|
|
|
101
101
|
/** {'a.b':2} => { a: {b:2}} */
|
|
102
102
|
export declare function unflattenObject(data: Record<string, any>): Record<string, any>;
|
|
103
103
|
/** Mean to fix typing because it's wront on Object.entries */
|
|
104
|
-
export declare function objEntries<Obj extends Record<string, any>>(obj: Obj): ObjEntries<Obj
|
|
104
|
+
export declare function objEntries<Obj extends Record<string, any>>(obj: Obj): ObjEntries<Obj>[];
|
|
105
105
|
type ObjEntries<T> = {
|
|
106
106
|
[K in keyof T]: [K, T[K]];
|
|
107
107
|
}[keyof T][];
|
package/package.json
CHANGED
package/src/object-utils.ts
CHANGED
|
@@ -403,7 +403,7 @@ export function unflattenObject(data: Record<string, any>): Record<string, any>
|
|
|
403
403
|
}
|
|
404
404
|
|
|
405
405
|
/** Mean to fix typing because it's wront on Object.entries */
|
|
406
|
-
export function objEntries<Obj extends Record<string, any>>(obj: Obj): ObjEntries<Obj> {
|
|
406
|
+
export function objEntries<Obj extends Record<string, any>>(obj: Obj): ObjEntries<Obj>[] {
|
|
407
407
|
return Object.entries(obj)
|
|
408
408
|
}
|
|
409
409
|
|