@trackunit/shared-utils 1.13.7 → 1.13.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/shared-utils",
3
- "version": "1.13.7",
3
+ "version": "1.13.8",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "engines": {
6
6
  "node": ">=24.x"
@@ -1,4 +1,4 @@
1
1
  export type DeepPartialNullable<TObject> = TObject extends Array<unknown> ? DeepPartialNullableArray<TObject[number]> : TObject extends object ? {
2
- [P in keyof TObject]?: DeepPartialNullable<TObject[P]> | null;
2
+ [KeyProperty in keyof TObject]?: DeepPartialNullable<TObject[KeyProperty]> | null;
3
3
  } : TObject | null;
4
4
  export type DeepPartialNullableArray<TItem> = Array<DeepPartialNullable<TItem>>;
@@ -1,5 +1,5 @@
1
1
  export type Nullable<TObject> = {
2
- [K in keyof TObject]: TObject[K] | null;
2
+ [KeyProperty in keyof TObject]: TObject[KeyProperty] | null;
3
3
  };
4
4
  /**
5
5
  * Use with filter() to remove null and undefined from an array
@@ -48,7 +48,7 @@ export type MakePropertyOptional<TOriginal, KeyOfPropertyToMakeOptional extends
48
48
  * @template TUnion - The type to union with each property in the original type.
49
49
  */
50
50
  export type MakePropertiesUnion<TOriginal, TUnion> = {
51
- [Key in keyof TOriginal]: TOriginal[Key] | TUnion;
51
+ [KeyProperty in keyof TOriginal]: TOriginal[KeyProperty] | TUnion;
52
52
  };
53
53
  /**
54
54
  * Represents a type that makes all properties of a given type optional recursively.
@@ -62,13 +62,13 @@ export type MakePropertiesUnion<TOriginal, TUnion> = {
62
62
  * const user: PartialUser = { name: 'John' }; // Only 'name' is required.
63
63
  */
64
64
  export type DeepPartial<TObject> = TObject extends Record<PropertyKey, unknown> ? {
65
- [Key in keyof TObject]?: DeepPartial<TObject[Key]>;
65
+ [KeyProperty in keyof TObject]?: DeepPartial<TObject[KeyProperty]>;
66
66
  } : TObject;
67
67
  export type Entries<TObject> = Array<{
68
- [Key in keyof TObject]: [Key, TObject[Key]];
68
+ [KeyProperty in keyof TObject]: [KeyProperty, TObject[KeyProperty]];
69
69
  }[keyof TObject]>;
70
70
  type KeyValueTupleToObject<TEntries extends ReadonlyArray<readonly [PropertyKey, unknown]>> = {
71
- [Key in TEntries[number] as Key[0]]: Key[1];
71
+ [KeyEntry in TEntries[number] as KeyEntry[0]]: KeyEntry[1];
72
72
  };
73
73
  /**
74
74
  * Converts an object into an array of properly typed key-value pairs.