@enonic-types/core 8.1.0-B1 → 8.1.0-B2

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.
Files changed (2) hide show
  1. package/index.d.ts +5 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -16,19 +16,21 @@ declare global {
16
16
  type XpMixin = Record<string, Record<string, Record<string, unknown>>>;
17
17
  }
18
18
 
19
+ export type AppConfig = Readonly<Record<string, string | undefined>>;
20
+
19
21
  export interface App {
20
22
  /**
21
23
  * The name of the application.
22
24
  *
23
25
  * @type string
24
26
  */
25
- name: string;
27
+ readonly name: string;
26
28
  /**
27
29
  * Version of the application.
28
30
  *
29
31
  * @type string
30
32
  */
31
- version: string;
33
+ readonly version: string;
32
34
  /**
33
35
  * Values from the application’s configuration file.
34
36
  * This can be set using $XP_HOME/config/<app.name>.cfg.
@@ -36,7 +38,7 @@ export interface App {
36
38
  *
37
39
  * @type Object
38
40
  */
39
- config: Record<string, string | undefined>;
41
+ readonly config: AppConfig;
40
42
  }
41
43
 
42
44
  export interface DoubleUnderscore {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enonic-types/core",
3
- "version": "8.1.0-B1",
3
+ "version": "8.1.0-B2",
4
4
  "description": "Shared type definition for core libraries.",
5
5
  "types": "index.d.ts",
6
6
  "files": [