@tstdl/base 0.83.10 → 0.83.12

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/.eslintrc.cjs CHANGED
@@ -211,61 +211,6 @@ module.exports = {
211
211
 
212
212
  'field',
213
213
 
214
- // Getters / Setters
215
- '#private-static-get',
216
- '#private-static-set',
217
- 'private-static-get',
218
- 'private-static-set',
219
- 'protected-static-get',
220
- 'protected-static-set',
221
- 'public-static-get',
222
- 'public-static-set',
223
-
224
- /*
225
- 'private-decorated-get',
226
- 'private-decorated-set',
227
- 'protected-decorated-get',
228
- 'protected-decorated-set',
229
- 'public-decorated-get',
230
- 'public-decorated-set',
231
- */
232
-
233
- '#private-instance-get',
234
- '#private-instance-set',
235
- 'private-instance-get',
236
- 'private-instance-set',
237
- 'protected-instance-get',
238
- 'protected-instance-set',
239
- 'public-instance-get',
240
- 'public-instance-set',
241
-
242
- 'protected-abstract-get',
243
- 'protected-abstract-set',
244
- 'public-abstract-get',
245
- 'public-abstract-set',
246
-
247
- '#private-get',
248
- '#private-set',
249
- 'private-get',
250
- 'private-set',
251
- 'protected-get',
252
- 'protected-set',
253
- 'public-get',
254
- 'public-set',
255
-
256
- 'static-get',
257
- 'static-set',
258
- 'instance-get',
259
- 'instance-set',
260
- 'abstract-get',
261
- 'abstract-set',
262
-
263
- 'decorated-get',
264
- 'decorated-set',
265
-
266
- 'get',
267
- 'set',
268
-
269
214
  // Static initialization
270
215
  'static-initialization',
271
216
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tstdl/base",
3
- "version": "0.83.10",
3
+ "version": "0.83.12",
4
4
  "author": "Patrick Hein",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -34,6 +34,7 @@
34
34
  "@typescript-eslint/eslint-plugin": "5.56",
35
35
  "@typescript-eslint/parser": "5.56",
36
36
  "concurrently": "7.6",
37
+ "esbuild": "0.17",
37
38
  "eslint": "8.36",
38
39
  "eslint-import-resolver-typescript": "3.5",
39
40
  "eslint-plugin-import": "2.27",
package/types.d.ts CHANGED
@@ -47,7 +47,7 @@ export type EnumerationKey<T extends EnumerationObject = EnumerationObject> = Ex
47
47
  export type EnumerationMap<T extends EnumerationObject = EnumerationObject> = SimplifyObject<{
48
48
  [P in EnumerationKey<T>]: (T[P] extends number ? (`${T[P]}` extends `${infer U extends number}` ? U : never) : `${T[P]}`) | T[P];
49
49
  }>;
50
- export type EnumerationValue<T extends Enumeration = Enumeration> = T extends EnumerationObject ? Simplify<EnumerationMap<T>[keyof EnumerationMap<T>]> : T extends EnumerationArray ? T[number] : never;
50
+ export type EnumerationValue<T extends Enumeration = Enumeration> = T extends EnumerationObject ? SimplifyDeep<EnumerationMap<T>[keyof EnumerationMap<T>]> : T extends EnumerationArray ? T[number] : never;
51
51
  export type EnumerationEntry<T extends EnumerationObject = EnumerationObject> = {
52
52
  [P in EnumerationKey<T>]: [P, EnumerationMap<T>[P]];
53
53
  }[EnumerationKey<T>];
@@ -122,7 +122,7 @@ export type SimplifyArray<T extends readonly any[]> = {
122
122
  [I in keyof T]: Simplify<T[I]>;
123
123
  };
124
124
  export type SimplifyDeep<T> = T extends BuiltIn ? T : T extends readonly any[] ? {
125
- [K in keyof T]: SimplifyDeep<T[K]>;
125
+ [I in keyof T]: SimplifyDeep<T[I]>;
126
126
  } : T extends Record ? {
127
127
  [K in keyof T]: SimplifyDeep<T[K]>;
128
128
  } & {} : T;