UNPKG

@polgubau/utils

Version:

A collection of utility functions for TypeScript

10 lines (8 loc) 423 B
/** * Merge and deep copy the values of all of the enumerable own properties of target object from source object to a new object * @param target The target object to get properties from. * @param source The source object from which to copy properties. * @return A new merged and deep copied object. */ declare function mergeDeep<T extends object, S extends object>(target: T, source: S): T & S; export { mergeDeep };