UNPKG

@exadel/esl

Version:

Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components

26 lines (25 loc) 979 B
/** * Performs a deep copy of object. * @returns deep copy of the object */ export declare function deepMerge<T>(obj: T): T; /** * Performs a deep merge of two objects. Does not modify objects (immutable) * @returns new object with merged key/values */ export declare function deepMerge<T, U>(obj1: T, obj2: U): T & U; /** * Performs a deep merge of three objects. Does not modify objects (immutable) * @returns new object with merged key/values */ export declare function deepMerge<T, U, V>(obj1: T, obj2: U, obj3: V): T & U & V; /** * Performs a deep merge of four objects. Does not modify objects (immutable) * @returns new object with merged key/values */ export declare function deepMerge<T, U, V, W>(obj1: T, obj2: U, obj3: V, obj4: W): T & U & V & W; /** * Performs a deep merge of objects and returns new object. Does not modify objects (immutable) * @returns new object with merged key/values */ export declare function deepMerge(...objects: any[]): any;