@lntvow/utils 2.4.2 → 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.
Files changed (2) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/package.json +2 -17
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lntvow/utils",
3
- "version": "2.4.2",
3
+ "version": "2.4.4",
4
4
  "description": "工具库",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -15,30 +15,15 @@
15
15
  "dayjs": "^1.11.10"
16
16
  },
17
17
  "devDependencies": {
18
- "@commitlint/cli": "^18.4.3",
19
- "@commitlint/config-conventional": "^18.4.3",
20
- "@lntvow/eslint-config": "^8.3.6",
18
+ "@lntvow/dev": "^0.2.4",
21
19
  "@vitest/coverage-istanbul": "^1.2.0",
22
20
  "@vitest/ui": "^1.2.0",
23
- "bumpp": "^9.2.1",
24
- "commitizen": "^4.3.0",
25
- "cz-conventional-changelog": "^3.3.0",
26
21
  "deepmerge": "^4.3.1",
27
- "husky": "^8.0.3",
28
- "lint-staged": "^15.2.0",
29
22
  "typescript": "^5.3.3",
30
23
  "vite": "^5.0.8",
31
24
  "vite-plugin-dts": "3.6.4",
32
25
  "vitest": "^1.0.4"
33
26
  },
34
- "lint-staged": {
35
- "*.{js,jsx,ts,tsx,vue}": [
36
- "eslint --fix"
37
- ],
38
- "*.{json,css,scss,md}": [
39
- "prettier --write"
40
- ]
41
- },
42
27
  "scripts": {
43
28
  "test": "vitest",
44
29
  "test:ui": "vitest --ui",