ddan-js 3.1.5 → 3.1.7
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.browser.js +1 -1
- package/bin/ddan-js.js +1 -1
- package/bin/ddan-js.mjs +1 -1
- package/bin/modules/hook/base.d.ts +1 -0
- package/bin/modules/hook/index.d.ts +1 -0
- package/bin/tiny/hook.d.ts +6 -5
- package/package.json +1 -1
|
@@ -9,5 +9,6 @@ declare const _default: {
|
|
|
9
9
|
timeout: <T_2 = any>(task?: Ddan.PFunction<T_2> | undefined, ms?: number, desc?: string) => Promise<[any, undefined] | [null, T_2]>;
|
|
10
10
|
getValueIf: <T_3 = any, F = any>(condition: boolean | (() => boolean), trueValue: T_3 | (() => T_3), falseValue?: F | (() => F) | undefined) => T_3 | F | undefined;
|
|
11
11
|
resolveValue: <T_4 = any>(value: T_4 | (() => T_4)) => T_4;
|
|
12
|
+
runAsync: <T_5 = any>(func: any) => Promise<T_5 | undefined>;
|
|
12
13
|
};
|
|
13
14
|
export default _default;
|
|
@@ -45,5 +45,6 @@ declare const _default: {
|
|
|
45
45
|
timeout: <T_3 = any>(task?: Ddan.PFunction<T_3> | undefined, ms?: number, desc?: string) => Promise<[any, undefined] | [null, T_3]>;
|
|
46
46
|
getValueIf: <T_4 = any, F = any>(condition: boolean | (() => boolean), trueValue: T_4 | (() => T_4), falseValue?: F | (() => F) | undefined) => T_4 | F | undefined;
|
|
47
47
|
resolveValue: <T_5 = any>(value: T_5 | (() => T_5)) => T_5;
|
|
48
|
+
runAsync: <T_6 = any>(func: any) => Promise<T_6 | undefined>;
|
|
48
49
|
};
|
|
49
50
|
export default _default;
|
package/bin/tiny/hook.d.ts
CHANGED
|
@@ -131,6 +131,7 @@ declare const dHook: {
|
|
|
131
131
|
timeout: <T_6 = any>(task?: import("..").Ddan.PFunction<T_6> | undefined, ms?: number, desc?: string) => Promise<[any, undefined] | [null, T_6]>;
|
|
132
132
|
getValueIf: <T_7 = any, F = any>(condition: boolean | (() => boolean), trueValue: T_7 | (() => T_7), falseValue?: F | (() => F) | undefined) => T_7 | F | undefined;
|
|
133
133
|
resolveValue: <T_8 = any>(value: T_8 | (() => T_8)) => T_8;
|
|
134
|
+
runAsync: <T_9 = any>(func: any) => Promise<T_9 | undefined>;
|
|
134
135
|
base64: {
|
|
135
136
|
encode: (input: string) => string;
|
|
136
137
|
decode: (base64Str: string) => string;
|
|
@@ -184,7 +185,7 @@ declare const dHook: {
|
|
|
184
185
|
bytes2hex: (bytes: Uint8Array) => string;
|
|
185
186
|
toUint32: (str: string) => Uint32Array;
|
|
186
187
|
fromUint32: (uint32: Uint32Array) => string;
|
|
187
|
-
flatten: <
|
|
188
|
+
flatten: <T_10>(data: T_10[], recursive?: boolean, list?: T_10[]) => T_10[];
|
|
188
189
|
flattenPath: (data: Record<string, any>) => Record<string, any>;
|
|
189
190
|
normalizeStructure: (data: any, prevData: any) => void;
|
|
190
191
|
diffPath: (data: Record<string, any>, prevData: Record<string, any>) => Record<string, any>;
|
|
@@ -200,12 +201,12 @@ declare const dHook: {
|
|
|
200
201
|
ignoreEmptyString?: boolean | undefined;
|
|
201
202
|
}) => any;
|
|
202
203
|
clone: (source: any, weakMap?: WeakMap<object, any>) => any;
|
|
203
|
-
cloneClass: <
|
|
204
|
-
isEqual: <
|
|
204
|
+
cloneClass: <T_11>(source: T_11) => T_11;
|
|
205
|
+
isEqual: <T_12 = any>(value: T_12, other: T_12, depth?: number) => boolean;
|
|
205
206
|
isEqualArray: (value: any[], other: any[], depth?: number) => boolean;
|
|
206
207
|
isEqualObject: (value: Record<string, any>, other: Record<string, any>, depth?: number) => boolean;
|
|
207
|
-
isEqualValue: <
|
|
208
|
+
isEqualValue: <T_13>(value: T_13, other: T_13, type: string) => boolean;
|
|
208
209
|
isEqualAB: (value: ArrayBuffer, other: ArrayBuffer) => boolean;
|
|
209
|
-
isEqualDeep: <
|
|
210
|
+
isEqualDeep: <T_14>(value: T_14, other: T_14) => boolean;
|
|
210
211
|
};
|
|
211
212
|
export default dHook;
|