utilium 0.7.7 → 0.7.9

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
@@ -8,9 +8,15 @@ export declare function assignWithDefaults<To extends Record<keyof any, any>, Fr
8
8
  /**
9
9
  * Entries of T
10
10
  */
11
- export type Entries<T extends object> = UnionToTuple<{
11
+ export type EntriesTuple<T extends object> = UnionToTuple<{
12
12
  [K in keyof T]: [K, T[K]];
13
- }[keyof T]>;
13
+ }[keyof T]> & [unknown, unknown][];
14
+ /**
15
+ * Entries of T
16
+ */
17
+ export type Entries<T extends object> = {
18
+ [K in keyof T]: [K, T[K]];
19
+ }[keyof T][];
14
20
  export declare function isJSON(str: string): boolean;
15
21
  export declare function resolveConstructors(object: object): string[];
16
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.7",
3
+ "version": "0.7.9",
4
4
  "description": "Typescript utilies",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/objects.ts CHANGED
@@ -35,7 +35,12 @@ export function assignWithDefaults<To extends Record<keyof any, any>, From exten
35
35
  /**
36
36
  * Entries of T
37
37
  */
38
- export type Entries<T extends object> = UnionToTuple<{ [K in keyof T]: [K, T[K]] }[keyof T]>;
38
+ export type EntriesTuple<T extends object> = UnionToTuple<{ [K in keyof T]: [K, T[K]] }[keyof T]> & [unknown, unknown][];
39
+
40
+ /**
41
+ * Entries of T
42
+ */
43
+ export type Entries<T extends object> = { [K in keyof T]: [K, T[K]] }[keyof T][];
39
44
 
40
45
  export function isJSON(str: string) {
41
46
  try {