-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
25 lines (23 loc) · 965 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**
* The `deep-compare-objects` module allows you to get the deep difference between two objects.
* To get started, import the necessary modules:
*
* ```js
* import deepCompareObjects from 'deep-compare-objects';
* ```
*
* For a detailed understanding of its functionality, refer to the module's GitHub page:
*
* @see [GitHub](https://github.com/amirfarzamnia/deep-compare-objects)
*/
declare module 'deep-compare-objects' {
/**
* Finds and returns the differences between two objects `a` and `b`.
*
* @param {Record<string, any>} [a] The first object to compare.
* @param {Record<string, any>} [b] The second object to compare.
*
* @returns {Record<string, any> | undefined} An object containing the differences between `a` and `b`, or undefined if `b` is null or undefined.
*/
export default function deepCompareObjects(a?: Record<string, any>, b?: Record<string, any>): Record<string, any> | undefined;
}