Where the ../contentment/… is our own folder. I have had to pull the ContentmentListItem and ContentmentDataListItemUiElement across into our own types as trying to find a direct reference from Contentment was harder than anticipated
Is there a way to directly reference these types from Contentment so that you don’t need to include them directly?
I don’t know of a way that the TypeScript definitions can be referenced from the NuGet package itself.
My assumption is that I’ll need to release a separate NPM package for the TypeScript definitions. BUT! I’ve never done this before, so it’ll be a learning curve for me.
If anyone has any suggestions or guides I can read up on… or better yet, contribute to the repository, that would be hugely appreciated. Otherwise I’ll figure it out over the upcoming weeks (months).
import { manifests as dataListItemUis } from './data-list-item-ui/manifests.js';
//import type { UmbExtensionManifestKind } from '@umbraco-cms/backoffice/extension-registry';
export const manifests: Array<UmbExtensionManifest> = [
...dataListItemUis,
];
import type { UmbExtensionManifestKind } from '@umbraco-cms/backoffice/extension-registry';
import { manifests as contentmentExtensions } from "./contentment/manifests.js";
// Job of the bundle is to collate all the manifests from different parts of the extension and load other manifests
// We load this bundle from umbraco-package.json
export const manifests: Array<UmbExtensionManifest | UmbExtensionManifestKind> = [
...contentmentExtensions,
];
It seems it caused issue having UmbExtensionManifestKind included in Array<UmbExtensionManifest>.