@lntvow/utils 2.4.3 → 2.4.4
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/dist/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ declare function appendQueryString(url: string, obj: AnyObj, options?: Stringify
|
|
|
13
13
|
|
|
14
14
|
export declare type Arrayable<T> = T | T[];
|
|
15
15
|
|
|
16
|
+
export declare type ArrayItem<T> = T extends (infer U)[] ? U : never;
|
|
17
|
+
|
|
16
18
|
/**
|
|
17
19
|
* @description 将非数组转换为数组 如果是目标本就是数组则直接返回
|
|
18
20
|
* @param target 目标
|
|
@@ -25,14 +27,12 @@ export declare function compareProperties(target: AnyObj, source: AnyObj): void
|
|
|
25
27
|
/**
|
|
26
28
|
* @description compose
|
|
27
29
|
* @param fns 任意函数
|
|
28
|
-
* @url https://lntvow.vercel.app/web/javascript/compose.html
|
|
29
30
|
*/
|
|
30
31
|
export declare function compose(...fns: ((...args: any[]) => any)[]): (...args: any[]) => any;
|
|
31
32
|
|
|
32
33
|
/**
|
|
33
34
|
* @description compose 从右到左
|
|
34
35
|
* @param fns 任意函数
|
|
35
|
-
* @url https://lntvow.vercel.app/web/javascript/compose.html
|
|
36
36
|
*/
|
|
37
37
|
export declare function composeRight(...fns: ((...args: any[]) => any)[]): (...args: any[]) => any;
|
|
38
38
|
|