@etsoo/shared 1.1.43 → 1.1.44

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.
@@ -133,7 +133,7 @@ export declare namespace DataTypes {
133
133
  /**
134
134
  * Enum base type
135
135
  */
136
- type EnumBase = Record<string, EnumValue>;
136
+ type EnumBase<T extends EnumValue = EnumValue> = Record<string, T>;
137
137
  /**
138
138
  * Function type
139
139
  */
@@ -133,7 +133,7 @@ export declare namespace DataTypes {
133
133
  /**
134
134
  * Enum base type
135
135
  */
136
- type EnumBase = Record<string, EnumValue>;
136
+ type EnumBase<T extends EnumValue = EnumValue> = Record<string, T>;
137
137
  /**
138
138
  * Function type
139
139
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/shared",
3
- "version": "1.1.43",
3
+ "version": "1.1.44",
4
4
  "description": "TypeScript shared utilities and functions",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -58,7 +58,7 @@
58
58
  "@types/jest": "^28.1.6",
59
59
  "@typescript-eslint/eslint-plugin": "^5.33.0",
60
60
  "@typescript-eslint/parser": "^5.33.0",
61
- "eslint": "^8.21.0",
61
+ "eslint": "^8.22.0",
62
62
  "eslint-config-airbnb-base": "^15.0.0",
63
63
  "eslint-plugin-import": "^2.26.0",
64
64
  "jest": "^28.1.3",
package/src/DataTypes.ts CHANGED
@@ -171,7 +171,7 @@ export namespace DataTypes {
171
171
  /**
172
172
  * Enum base type
173
173
  */
174
- export type EnumBase = Record<string, EnumValue>;
174
+ export type EnumBase<T extends EnumValue = EnumValue> = Record<string, T>;
175
175
 
176
176
  /**
177
177
  * Function type