@etsoo/shared 1.1.48 → 1.1.49

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/README.md CHANGED
@@ -74,7 +74,7 @@ ETSOO Extended abstract history class
74
74
  |replaceState|Modifies the current history entry|
75
75
 
76
76
  ## DataTypes
77
- Data type definitions and type safe functions
77
+ Data type definitions and type safe functions. ListItemType and ListItemType1 are sugar types.
78
78
 
79
79
  |Name|Description|
80
80
  |---:|---|
@@ -325,3 +325,11 @@ export declare namespace DataTypes {
325
325
  */
326
326
  function isSimpleType(input: unknown, includeArray?: boolean): boolean;
327
327
  }
328
+ /**
329
+ * List item with number id type
330
+ */
331
+ export declare type ListType = DataTypes.IdLabelItem<number>;
332
+ /**
333
+ * List item with string id type
334
+ */
335
+ export declare type ListType1 = DataTypes.IdLabelItem<string>;
@@ -325,3 +325,11 @@ export declare namespace DataTypes {
325
325
  */
326
326
  function isSimpleType(input: unknown, includeArray?: boolean): boolean;
327
327
  }
328
+ /**
329
+ * List item with number id type
330
+ */
331
+ export declare type ListType = DataTypes.IdLabelItem<number>;
332
+ /**
333
+ * List item with string id type
334
+ */
335
+ export declare type ListType1 = DataTypes.IdLabelItem<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/shared",
3
- "version": "1.1.48",
3
+ "version": "1.1.49",
4
4
  "description": "TypeScript shared utilities and functions",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -64,6 +64,6 @@
64
64
  "jest": "^28.1.3",
65
65
  "jest-environment-jsdom": "^28.1.3",
66
66
  "ts-jest": "^28.0.8",
67
- "typescript": "^4.7.4"
67
+ "typescript": "^4.8.2"
68
68
  }
69
69
  }
package/src/DataTypes.ts CHANGED
@@ -646,3 +646,13 @@ export namespace DataTypes {
646
646
  return true;
647
647
  }
648
648
  }
649
+
650
+ /**
651
+ * List item with number id type
652
+ */
653
+ export type ListType = DataTypes.IdLabelItem<number>;
654
+
655
+ /**
656
+ * List item with string id type
657
+ */
658
+ export type ListType1 = DataTypes.IdLabelItem<string>;