.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / @typescript-eslint / experimental-utils / dist / eslint-utils / deepMerge.d.ts
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/deepMerge.d.ts b/.config/coc/extensions/node_modules/coc-prettier/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/deepMerge.d.ts
new file mode 100644 (file)
index 0000000..9650020
--- /dev/null
@@ -0,0 +1,17 @@
+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
\ No newline at end of file