@enonic-types/core 8.1.0-RC2 → 8.1.0-RC3
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/index.d.ts +18 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -7,13 +7,27 @@ export interface NestedRecord {
|
|
|
7
7
|
declare global {
|
|
8
8
|
interface XpBeans {}
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// These must stay interfaces, so applications can add their own descriptors with declaration merging.
|
|
11
|
+
// A type alias like Record<ComponentDescriptor, NestedRecord> can't be merged.
|
|
12
|
+
/* eslint-disable @typescript-eslint/consistent-indexed-object-style -- see comment above */
|
|
13
|
+
interface XpLayoutMap {
|
|
14
|
+
[layoutDescriptor: ComponentDescriptor]: NestedRecord;
|
|
15
|
+
}
|
|
11
16
|
|
|
12
17
|
interface XpLibraries {}
|
|
13
18
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
19
|
+
interface XpPageMap {
|
|
20
|
+
[pageDescriptor: ComponentDescriptor]: NestedRecord;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
interface XpPartMap {
|
|
24
|
+
[partDescriptor: ComponentDescriptor]: NestedRecord;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface XpMixin {
|
|
28
|
+
[applicationKey: string]: Record<string, Record<string, unknown>>;
|
|
29
|
+
}
|
|
30
|
+
/* eslint-enable @typescript-eslint/consistent-indexed-object-style */
|
|
17
31
|
}
|
|
18
32
|
|
|
19
33
|
export type AppConfig = Readonly<Record<string, string | undefined>>;
|