File tree Expand file tree Collapse file tree 2 files changed +17
-9
lines changed
core/extension-registry/models Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export interface ManifestBlockEditorCustomView extends ManifestElement<UmbBlockE
20
20
}
21
21
22
22
declare global {
23
- interface UmbManifestType {
23
+ interface UmbExtensionManifestMap {
24
24
blockEditorCustomView : ManifestBlockEditorCustomView ;
25
25
}
26
26
}
Original file line number Diff line number Diff line change @@ -226,21 +226,29 @@ declare global {
226
226
/**
227
227
* This global type allows to declare manifests types from its own module.
228
228
* @example
229
- * ```js
230
- declare global {
231
- interface UmbManifestType {
232
- My_UNIQUE_MANIFEST_NAME: ManifestTypes;
229
+ ```js
230
+ declare global {
231
+ interface UmbExtensionManifestMap {
232
+ My_UNIQUE_MANIFEST_NAME: MyExtensionManifestType;
233
+ }
234
+ }
235
+ ```
236
+ If you have multiple types, you can declare them in this way:
237
+ ```js
238
+ declare global {
239
+ interface UmbExtensionManifestMap {
240
+ My_UNIQUE_MANIFEST_NAME: MyExtensionManifestTypeA | MyExtensionManifestTypeB;
241
+ }
233
242
}
234
- }
235
- * ```
243
+ ```
236
244
*/
237
- interface UmbManifestType {
245
+ interface UmbExtensionManifestMap {
238
246
UMB_CORE : ManifestTypes ;
239
247
}
240
248
241
249
/**
242
250
* This global type provides a union of all declared manifest types.
243
251
* If this is a local package that declares additional Manifest Types, then these will also be included in this union.
244
252
*/
245
- type UmbExtensionManifest = UnionOfProperties < UmbManifestType > ;
253
+ type UmbExtensionManifest = UnionOfProperties < UmbExtensionManifestMap > ;
246
254
}
You can’t perform that action at this time.
0 commit comments