Urara-Blog/node_modules/.pnpm-store/v3/files/a7/1e93aaf5d802da4564032f23c485af43bf79e6e71be04136e3129fffa5b7d088447cbf5fecef77437ad2531e5b0e16970e530fa14fc39066721891dadc942e
2022-08-14 01:14:53 +08:00

17 lines
No EOL
719 B
Text

declare type ObjectLike<T = unknown> = Record<string, T>;
/**
* Check if the variable contains an object strictly rejecting arrays
* @param obj an object
* @returns `true` if obj is an object
*/
declare function isObjectNotArray<T extends ObjectLike>(obj: unknown | unknown[]): obj is T;
/**
* Pure function - doesn't mutate either parameter!
* Merges two objects together deeply, overwriting the properties in first with the properties in second
* @param first The first object
* @param second The second object
* @returns a new object
*/
export declare function deepMerge(first?: ObjectLike, second?: ObjectLike): Record<string, unknown>;
export { isObjectNotArray };
//# sourceMappingURL=deepMerge.d.ts.map