@augment-vir/common
Version:
A collection of augments, helpers types, functions, and classes for any JavaScript environment.
15 lines (14 loc) • 615 B
TypeScript
import { type PartialDeep } from 'type-fest';
/**
* Accepts multiple objects and merges their key-value pairs recursively. Any values set to
* undefined will be removed.
*
* Note that order matters! Each input object will overwrite the properties of the previous objects.
*
* @category Object : Merge
* @category Package : @augment-vir/common
* @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common)
*/
export declare function mergeDeep<const T extends object>(...inputs: (Readonly<T> | Readonly<PartialDeep<T, {
recurseIntoArrays: true;
}>> | Readonly<Partial<T>>)[]): T;