limgen
Version:
Infrastructure as Code generator
14 lines (13 loc) • 639 B
TypeScript
/**
* Deeply merges the properties of the source object into the target object.
* If both target and source are objects, it recursively merges their properties.
* If both target and source are arrays, it concatenates the source array into the target array.
*
* @param target - The target object or array to merge properties into.
* @param source - The source object or array to merge properties from.
* @returns The modified target object or array.
*/
export declare function deepMerge(target: any, source: any): any;
export type RecursivePartial<T> = {
[P in keyof T]?: T[P] extends object ? RecursivePartial<T[P]> : T[P];
};