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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "topkat-utils",
3
- "version": "1.2.54",
3
+ "version": "1.2.55",
4
4
  "type": "commonjs",
5
5
  "types": "index.ts",
6
6
  "main": "dist",
@@ -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