@etsoo/shared 1.1.21 → 1.1.22

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.
@@ -187,19 +187,19 @@ export declare namespace DataTypes {
187
187
  /**
188
188
  * Name, like zh-CN
189
189
  */
190
- readonly name: string;
190
+ name: string;
191
191
  /**
192
192
  * Label for description, like Simplifined Chinese
193
193
  */
194
- readonly label: string;
194
+ label: string;
195
195
  /**
196
196
  * Resources
197
197
  */
198
- readonly resources: Readonly<T>;
198
+ resources: T;
199
199
  /**
200
200
  * Compatible names
201
201
  */
202
- readonly compatibleName?: string[];
202
+ compatibleName?: string[];
203
203
  }>;
204
204
  /**
205
205
  * Convert value to target type
@@ -55,15 +55,15 @@ export declare namespace DomUtils {
55
55
  * @param culture Detected culture
56
56
  */
57
57
  const getCulture: <T extends {}>(items: Readonly<{
58
- readonly name: string;
59
- readonly label: string;
60
- readonly resources: Readonly<T>;
61
- readonly compatibleName?: string[] | undefined;
58
+ name: string;
59
+ label: string;
60
+ resources: T;
61
+ compatibleName?: string[] | undefined;
62
62
  }>[], culture: string) => Readonly<{
63
- readonly name: string;
64
- readonly label: string;
65
- readonly resources: Readonly<T>;
66
- readonly compatibleName?: string[] | undefined;
63
+ name: string;
64
+ label: string;
65
+ resources: T;
66
+ compatibleName?: string[] | undefined;
67
67
  }> | undefined;
68
68
  /**
69
69
  * Get an unique key combined with current URL
@@ -187,19 +187,19 @@ export declare namespace DataTypes {
187
187
  /**
188
188
  * Name, like zh-CN
189
189
  */
190
- readonly name: string;
190
+ name: string;
191
191
  /**
192
192
  * Label for description, like Simplifined Chinese
193
193
  */
194
- readonly label: string;
194
+ label: string;
195
195
  /**
196
196
  * Resources
197
197
  */
198
- readonly resources: Readonly<T>;
198
+ resources: T;
199
199
  /**
200
200
  * Compatible names
201
201
  */
202
- readonly compatibleName?: string[];
202
+ compatibleName?: string[];
203
203
  }>;
204
204
  /**
205
205
  * Convert value to target type
@@ -55,15 +55,15 @@ export declare namespace DomUtils {
55
55
  * @param culture Detected culture
56
56
  */
57
57
  const getCulture: <T extends {}>(items: Readonly<{
58
- readonly name: string;
59
- readonly label: string;
60
- readonly resources: Readonly<T>;
61
- readonly compatibleName?: string[] | undefined;
58
+ name: string;
59
+ label: string;
60
+ resources: T;
61
+ compatibleName?: string[] | undefined;
62
62
  }>[], culture: string) => Readonly<{
63
- readonly name: string;
64
- readonly label: string;
65
- readonly resources: Readonly<T>;
66
- readonly compatibleName?: string[] | undefined;
63
+ name: string;
64
+ label: string;
65
+ resources: T;
66
+ compatibleName?: string[] | undefined;
67
67
  }> | undefined;
68
68
  /**
69
69
  * Get an unique key combined with current URL
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/shared",
3
- "version": "1.1.21",
3
+ "version": "1.1.22",
4
4
  "description": "TypeScript shared utilities and functions",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
package/src/DataTypes.ts CHANGED
@@ -241,22 +241,22 @@ export namespace DataTypes {
241
241
  /**
242
242
  * Name, like zh-CN
243
243
  */
244
- readonly name: string;
244
+ name: string;
245
245
 
246
246
  /**
247
247
  * Label for description, like Simplifined Chinese
248
248
  */
249
- readonly label: string;
249
+ label: string;
250
250
 
251
251
  /**
252
252
  * Resources
253
253
  */
254
- readonly resources: Readonly<T>;
254
+ resources: T;
255
255
 
256
256
  /**
257
257
  * Compatible names
258
258
  */
259
- readonly compatibleName?: string[];
259
+ compatibleName?: string[];
260
260
  }>;
261
261
 
262
262
  /**