deprecate ManifestTypes

This commit is contained in:
Niels Lyngsø
2024-10-28 13:56:37 +01:00
parent 6756ef0769
commit 083ed9d192

View File

@@ -1,6 +1,29 @@
import type { ManifestBase, ManifestBundle, ManifestCondition } from '@umbraco-cms/backoffice/extension-api';
export type ManifestTypes = ManifestBundle<ManifestTypes> | 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<UmbCoreManifestTypes> | ManifestCondition | ManifestBase;
type UnionOfProperties<T> = T extends object ? T[keyof T] : never;
@@ -25,7 +48,7 @@ declare global {
```
*/
interface UmbExtensionManifestMap {
UMB_CORE: ManifestTypes;
UMB_CORE: UmbCoreManifestTypes;
}
/**