utilium 0.7.9 → 0.7.10

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/objects.d.ts CHANGED
@@ -14,9 +14,9 @@ export type EntriesTuple<T extends object> = UnionToTuple<{
14
14
  /**
15
15
  * Entries of T
16
16
  */
17
- export type Entries<T extends object> = {
17
+ export type Entries<T extends object> = ({
18
18
  [K in keyof T]: [K, T[K]];
19
- }[keyof T][];
19
+ }[keyof T] & unknown[])[];
20
20
  export declare function isJSON(str: string): boolean;
21
21
  export declare function resolveConstructors(object: object): string[];
22
22
  export declare function map<const T extends Partial<Record<any, any>>>(items: T): Map<keyof T, T[keyof T]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utilium",
3
- "version": "0.7.9",
3
+ "version": "0.7.10",
4
4
  "description": "Typescript utilies",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/objects.ts CHANGED
@@ -40,7 +40,7 @@ export type EntriesTuple<T extends object> = UnionToTuple<{ [K in keyof T]: [K,
40
40
  /**
41
41
  * Entries of T
42
42
  */
43
- export type Entries<T extends object> = { [K in keyof T]: [K, T[K]] }[keyof T][];
43
+ export type Entries<T extends object> = ({ [K in keyof T]: [K, T[K]] }[keyof T] & unknown[])[];
44
44
 
45
45
  export function isJSON(str: string) {
46
46
  try {