UNPKG

719 BTypeScriptView Raw
1declare type ObjectLike<T = unknown> = Record<string, T>;
2/**
3 * Check if the variable contains an object strictly rejecting arrays
4 * @param obj an object
5 * @returns `true` if obj is an object
6 */
7declare function isObjectNotArray<T extends ObjectLike>(obj: unknown | unknown[]): obj is T;
8/**
9 * Pure function - doesn't mutate either parameter!
10 * Merges two objects together deeply, overwriting the properties in first with the properties in second
11 * @param first The first object
12 * @param second The second object
13 * @returns a new object
14 */
15export declare function deepMerge(first?: ObjectLike, second?: ObjectLike): Record<string, unknown>;
16export { isObjectNotArray };
17//# sourceMappingURL=deepMerge.d.ts.map
\No newline at end of file