ddan-js 2.10.1 → 2.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/ddan-js.js +1 -1
- package/bin/ddan-js.mjs +1 -1
- package/bin/index.d.ts +1 -1
- package/bin/modules/common/equal.d.ts +6 -46
- package/bin/modules/common/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,49 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 对比值相等
|
|
3
|
-
* @param value
|
|
4
|
-
* @param other
|
|
5
|
-
* @param depth 比较深度
|
|
6
|
-
* @returns
|
|
7
|
-
*/
|
|
8
|
-
declare function isEqual<T>(value: T, other: T, depth?: number): boolean;
|
|
9
|
-
/**
|
|
10
|
-
* 比较数组
|
|
11
|
-
* @param value
|
|
12
|
-
* @param other
|
|
13
|
-
* @param depth
|
|
14
|
-
* @returns
|
|
15
|
-
*/
|
|
16
|
-
declare function isEqualArray(value: any[], other: any[], depth?: number): boolean;
|
|
17
|
-
/**
|
|
18
|
-
* 比较对象
|
|
19
|
-
* @param value
|
|
20
|
-
* @param other
|
|
21
|
-
* @param depth
|
|
22
|
-
* @returns
|
|
23
|
-
*/
|
|
24
|
-
declare function isEqualObject(value: Record<string, any>, other: Record<string, any>, depth?: number): boolean;
|
|
25
|
-
/**
|
|
26
|
-
* 按值类型直接比较
|
|
27
|
-
* @param value
|
|
28
|
-
* @param other
|
|
29
|
-
* @param type
|
|
30
|
-
* @returns
|
|
31
|
-
*/
|
|
32
|
-
declare function isEqualValue<T>(value: T, other: T, type: string): boolean;
|
|
33
|
-
/**
|
|
34
|
-
* 比较 ArrayBuffer
|
|
35
|
-
* @param value
|
|
36
|
-
* @param other
|
|
37
|
-
* @returns
|
|
38
|
-
*/
|
|
39
|
-
declare function isEqualAB(value: ArrayBuffer, other: ArrayBuffer): boolean;
|
|
40
|
-
declare function isEqualDeep<T>(value: T, other: T): boolean;
|
|
41
1
|
declare const _default: {
|
|
42
|
-
isEqual:
|
|
43
|
-
isEqualArray:
|
|
44
|
-
isEqualObject:
|
|
45
|
-
isEqualValue:
|
|
46
|
-
isEqualAB:
|
|
47
|
-
isEqualDeep:
|
|
2
|
+
isEqual: <T = any>(value: T, other: T, depth?: number) => boolean;
|
|
3
|
+
isEqualArray: (value: any[], other: any[], depth?: number) => boolean;
|
|
4
|
+
isEqualObject: (value: Record<string, any>, other: Record<string, any>, depth?: number) => boolean;
|
|
5
|
+
isEqualValue: <T_1>(value: T_1, other: T_1, type: string) => boolean;
|
|
6
|
+
isEqualAB: (value: ArrayBuffer, other: ArrayBuffer) => boolean;
|
|
7
|
+
isEqualDeep: <T_2>(value: T_2, other: T_2) => boolean;
|
|
48
8
|
};
|
|
49
9
|
export default _default;
|
|
@@ -10,7 +10,7 @@ declare const _default: {
|
|
|
10
10
|
}) => any;
|
|
11
11
|
clone: (source: any, weakMap?: WeakMap<object, any>) => any;
|
|
12
12
|
cloneClass: <T>(source: T) => T;
|
|
13
|
-
isEqual: <T_1>(value: T_1, other: T_1, depth?: number) => boolean;
|
|
13
|
+
isEqual: <T_1 = any>(value: T_1, other: T_1, depth?: number) => boolean;
|
|
14
14
|
isEqualArray: (value: any[], other: any[], depth?: number) => boolean;
|
|
15
15
|
isEqualObject: (value: Record<string, any>, other: Record<string, any>, depth?: number) => boolean;
|
|
16
16
|
isEqualValue: <T_2>(value: T_2, other: T_2, type: string) => boolean;
|