@airpower/enum 0.0.10 → 1.2.0

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.
@@ -1,7 +1,7 @@
1
1
  import { IEnum } from './IEnum';
2
2
  import { EnumConstructor, EnumKey } from './type';
3
3
  /**
4
- * # 枚举基类
4
+ * ### 枚举基类
5
5
  *
6
6
  * @author Hamm.cn
7
7
  */
@@ -1,6 +1,6 @@
1
1
  import { EnumKey } from './type';
2
2
  /**
3
- * # 标准枚举字典
3
+ * ### 标准枚举字典
4
4
  *
5
5
  * @author Hamm.cn
6
6
  */
@@ -7,5 +7,8 @@ export type EnumKey = string | number | boolean;
7
7
  * ### 枚举类
8
8
  */
9
9
  export type EnumConstructor<K extends EnumKey = number, E extends Enum<K> = Enum<K>> = {
10
+ /**
11
+ * ### 创建枚举实例
12
+ */
10
13
  new (...args: any[]): E;
11
14
  } & typeof Enum<K>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@airpower/enum",
3
3
  "type": "module",
4
- "version": "0.0.10",
4
+ "version": "1.2.0",
5
5
  "description": "AirPower-Enum 是一个基于 TypeScript 的封装的类似 Java 枚举类的枚举字典处理工具。",
6
6
  "author": {
7
7
  "name": "Hamm",
@@ -41,12 +41,12 @@
41
41
  "dependencies": {
42
42
  },
43
43
  "devDependencies": {
44
- "@antfu/eslint-config": "^4.11.0",
45
- "@types/node": "^22.13.14",
46
- "eslint": "^9.23.0",
47
- "typescript": "^5.8.2",
48
- "vite": "^6.2.0",
49
- "vite-plugin-dts": "^4.5.3"
44
+ "@antfu/eslint-config": "^4.16.2",
45
+ "@types/node": "^24.0.10",
46
+ "eslint": "^9.30.1",
47
+ "typescript": "^5.8.3",
48
+ "vite": "6.3.4",
49
+ "vite-plugin-dts": "^4.5.4"
50
50
  },
51
51
  "publishConfig": {
52
52
  "access": "public"