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 7c562c37af..2b3c1e5178 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 @@ -1,6 +1,29 @@ import type { ManifestBase, ManifestBundle, ManifestCondition } from '@umbraco-cms/backoffice/extension-api'; -export type ManifestTypes = ManifestBundle | ManifestCondition | ManifestBase; +/** + * @deprecated Follow these steps to get Extension Manifest Type for v.15+ projects: + * + * Setup your `tsconfig.json` to include the extension-types as global types. Like this: + * ``` + { + "compilerOptions": { + ... + "types": [ + "@umbraco-cms/backoffice/extension-types" + ] + } + } + * ``` + * + * Once done, you can use the global type `UmbExtensionManifest`. + * + * If defining your own extension types, then follow the link below for more information. + * + * [Read more on the change announcement]{https://github.com/umbraco/Announcements/issues/22} + */ +export type ManifestTypes = never; + +type UmbCoreManifestTypes = ManifestBundle | ManifestCondition | ManifestBase; type UnionOfProperties = T extends object ? T[keyof T] : never; @@ -25,7 +48,7 @@ declare global { ``` */ interface UmbExtensionManifestMap { - UMB_CORE: ManifestTypes; + UMB_CORE: UmbCoreManifestTypes; } /**