First commit.

Signed-off-by: Chen Xiao <abigwc@gmail.com>
This commit is contained in:
Chen Xiao
2026-05-08 14:43:16 +08:00
commit 0b64e2de94
10989 changed files with 2253791 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
/**
* Compares two objects, returns true if identical
*
* Reference object contains keys
*/
declare function compareObjects<T extends Record<string, unknown>>(obj1: T, obj2: T, ref?: T): boolean;
/**
* Unmerge objects, removing items that match in both objects
*/
declare function unmergeObjects<T extends Record<string, unknown>>(obj1: T, obj2: T): T;
/**
* Get common properties in 2 objects
*/
declare function commonObjectProps<T extends Record<string, unknown>>(item: unknown, reference: T): Partial<T>;
export { commonObjectProps, compareObjects, unmergeObjects };