From 12851b4e93f2686b9f9182ea853128b2d2f92e63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 30 Aug 2024 23:25:14 +0200 Subject: [PATCH] JS Docs --- .../core/extension-registry/models/index.ts | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/index.ts index c3386877ae..d2efd62c42 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/index.ts @@ -219,8 +219,24 @@ export type ManifestTypes = type UnionOfProperties = T extends object ? T[keyof T] : never; declare global { - interface UmbManifestType { - CORE: ManifestTypes; + /** + * This global type allows to declare manifests types from its own module. + * @example + * ```js + declare global { + interface UmbManifestType { + My_UNIQUE_MANIFEST_NAME: ManifestTypes; + } } + * ``` + */ + interface UmbManifestType { + UMB_CORE: ManifestTypes; + } + + /** + * This global type provides a union of all declared manifest types. + * If this is a local package that declares additional Manifest Types, then these will also be included in this union. + */ type UmbManifestTypes = UnionOfProperties; }