@shakerquiz/utilities 0.4.2 → 0.4.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shakerquiz/utilities",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "author": "yurkimus <yurkimus@gmail.com>",
5
5
  "license": "ISC",
6
6
  "scripts": {
@@ -1,27 +1,27 @@
1
1
  export const Domains: readonly ["Asset", "User", "Role", "City", "Venue", "Theme", "ThemeAsset", "Game", "GameAsset", "Registration", "Mailing"];
2
2
  /**
3
- * @type {Record<Domain, Icon>}
3
+ * @type {Record<Domains[number], Icon>}
4
4
  */
5
- export const DomainIcon: Record<Domain, Icon>;
5
+ export const DomainIcon: Record<"Asset" | "User" | "Role" | "City" | "Venue" | "Theme" | "ThemeAsset" | "Game" | "GameAsset" | "Registration" | "Mailing", Icon>;
6
6
  /**
7
- * @type {Record<Domain, Record<Kind, string>>}
7
+ * @type {Record<Domains[number], Record<Kind, string>>}
8
8
  */
9
- export const DomainKindPathname: Record<Domain, Record<Kind, string>>;
9
+ export const DomainKindPathname: Record<"Asset" | "User" | "Role" | "City" | "Venue" | "Theme" | "ThemeAsset" | "Game" | "GameAsset" | "Registration" | "Mailing", Record<Kind, string>>;
10
10
  export const Procedures: readonly ["Checkin", "Redirect"];
11
11
  /**
12
- * @type {Record<Procedure, Icon>}
12
+ * @type {Record<Procedures[number], Icon>}
13
13
  */
14
- export const ProcedureIcon: Record<Procedure, Icon>;
14
+ export const ProcedureIcon: Record<"Checkin" | "Redirect", Icon>;
15
15
  /**
16
- * @type {Record<Procedure, Record<Kind, string>>}
16
+ * @type {Record<Procedures[number], Record<Kind, string>>}
17
17
  */
18
- export const ProcedureKindPathname: Record<Procedure, Record<Kind, string>>;
18
+ export const ProcedureKindPathname: Record<"Checkin" | "Redirect", Record<Kind, string>>;
19
19
  export const Features: ("Asset" | "User" | "Role" | "City" | "Venue" | "Theme" | "ThemeAsset" | "Game" | "GameAsset" | "Registration" | "Mailing")[];
20
20
  /**
21
- * @type {Record<Feature, Icon>}
21
+ * @type {Record<Features[number], Icon>}
22
22
  */
23
- export const FeatureIcon: Record<Feature, Icon>;
23
+ export const FeatureIcon: Record<"Asset" | "User" | "Role" | "City" | "Venue" | "Theme" | "ThemeAsset" | "Game" | "GameAsset" | "Registration" | "Mailing", Icon>;
24
24
  /**
25
- * @type {Record<Feature, Record<Kind, string>>}
25
+ * @type {Record<Features[number], Record<Kind, string>>}
26
26
  */
27
- export const FeatureKindPathname: Record<Feature, Record<Kind, string>>;
27
+ export const FeatureKindPathname: Record<"Asset" | "User" | "Role" | "City" | "Venue" | "Theme" | "ThemeAsset" | "Game" | "GameAsset" | "Registration" | "Mailing", Record<Kind, string>>;
@@ -13,7 +13,7 @@ export var Domains = /** @type {const} */ ([
13
13
  ])
14
14
 
15
15
  /**
16
- * @type {Record<Domain, Icon>}
16
+ * @type {Record<Domains[number], Icon>}
17
17
  */
18
18
  export var DomainIcon = {
19
19
  'User': 'users',
@@ -27,7 +27,7 @@ export var DomainIcon = {
27
27
  }
28
28
 
29
29
  /**
30
- * @type {Record<Domain, Record<Kind, string>>}
30
+ * @type {Record<Domains[number], Record<Kind, string>>}
31
31
  */
32
32
  export var DomainKindPathname = {
33
33
  'User': {
@@ -77,7 +77,7 @@ export var Procedures = /** @type {const} */ ([
77
77
  ])
78
78
 
79
79
  /**
80
- * @type {Record<Procedure, Icon>}
80
+ * @type {Record<Procedures[number], Icon>}
81
81
  */
82
82
  export var ProcedureIcon = {
83
83
  'Checkin': 'arrow-right-end-on-rectangle',
@@ -85,7 +85,7 @@ export var ProcedureIcon = {
85
85
  }
86
86
 
87
87
  /**
88
- * @type {Record<Procedure, Record<Kind, string>>}
88
+ * @type {Record<Procedures[number], Record<Kind, string>>}
89
89
  */
90
90
  export var ProcedureKindPathname = {
91
91
  'Checkin': {
@@ -102,7 +102,7 @@ export var ProcedureKindPathname = {
102
102
  export var Features = Domains.concat(Procedures)
103
103
 
104
104
  /**
105
- * @type {Record<Feature, Icon>}
105
+ * @type {Record<Features[number], Icon>}
106
106
  */
107
107
  export var FeatureIcon = {
108
108
  ...DomainIcon,
@@ -110,7 +110,7 @@ export var FeatureIcon = {
110
110
  }
111
111
 
112
112
  /**
113
- * @type {Record<Feature, Record<Kind, string>>}
113
+ * @type {Record<Features[number], Record<Kind, string>>}
114
114
  */
115
115
  export var FeatureKindPathname = {
116
116
  ...DomainKindPathname,