diff --git a/src/utils/object.utils.ts b/src/utils/object.utils.ts index d378faf..a7737b6 100644 --- a/src/utils/object.utils.ts +++ b/src/utils/object.utils.ts @@ -27,8 +27,8 @@ export const hashObject = async (object: T) => { return hashedString; }; -type DeepPartial = { - [P in keyof T]?: DeepPartial; +type TSources = { + [P in keyof T]?: TSources; }; const replaceValue = (value: T, newValue: T): T => { @@ -46,7 +46,7 @@ const replaceValue = (value: T, newValue: T): T => { * @param sources - The objects to merge into target * @returns The merged object */ -export const merge = (target: T, ...sources: DeepPartial[]): T => { +export const merge = (target: T, ...sources: TSources[]): T => { for (const source of sources) { for (const key in source) { if (source[key] === null || source[key] === undefined) {