@zpcscc/configs 2.1.0 → 2.1.1

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/package.json +9 -9
  2. package/types/any.d.ts +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zpcscc/configs",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "项目通用配置",
5
5
  "keywords": [
6
6
  "commitlint",
@@ -43,17 +43,17 @@
43
43
  "start": "dumi dev"
44
44
  },
45
45
  "dependencies": {
46
- "@babel/core": "7.24.9",
46
+ "@babel/core": "7.25.2",
47
47
  "@babel/plugin-syntax-flow": "7.24.7",
48
- "@babel/plugin-transform-react-jsx": "7.24.7",
48
+ "@babel/plugin-transform-react-jsx": "7.25.2",
49
49
  "@babel/runtime": "7.25.0",
50
- "@commitlint/cz-commitlint": "19.2.0",
50
+ "@commitlint/cz-commitlint": "19.4.0",
51
51
  "@rushstack/eslint-patch": "1.10.4",
52
- "@types/node": "20.14.12",
52
+ "@types/node": "22.1.0",
53
53
  "@types/react": "18.3.3",
54
54
  "@types/react-dom": "18.3.0",
55
- "@typescript-eslint/eslint-plugin": "7.17.0",
56
- "@typescript-eslint/parser": "7.17.0",
55
+ "@typescript-eslint/eslint-plugin": "8.0.1",
56
+ "@typescript-eslint/parser": "8.0.1",
57
57
  "@vue/eslint-config-prettier": "9.0.0",
58
58
  "@vue/eslint-config-typescript": "13.0.0",
59
59
  "commitizen": "4.3.0",
@@ -73,7 +73,7 @@
73
73
  "eslint-plugin-unicorn": "55.0.0",
74
74
  "eslint-plugin-vue": "9.27.0",
75
75
  "inquirer": "9.3.5",
76
- "postcss": "8.4.40",
76
+ "postcss": "8.4.41",
77
77
  "prettier": "3.3.3",
78
78
  "prettier-plugin-organize-imports": "4.0.0",
79
79
  "prettier-plugin-packagejson": "2.5.1",
@@ -85,7 +85,7 @@
85
85
  },
86
86
  "devDependencies": {
87
87
  "dumi": "2.4.7",
88
- "father": "4.4.5",
88
+ "father": "4.4.6",
89
89
  "gh-pages": "6.1.1",
90
90
  "react": "18.3.1",
91
91
  "react-dom": "18.3.1",
package/types/any.d.ts CHANGED
@@ -3,8 +3,8 @@
3
3
  // 任意值
4
4
  type Any = any;
5
5
  // 任意数组类型
6
- type AnyArray = any[];
6
+ type AnyArray<T = any> = T[];
7
7
  // 任意对象类型
8
- type AnyObject = Record<string, any>;
8
+ type AnyObject<T = any> = Record<string | number, T>;
9
9
  // 任意函数类型
10
- type AnyFunction = (...args: any[]) => any;
10
+ type AnyFunction<T = any> = (...args: T[]) => any;