use any for non compatible types
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import type { ManifestElement, ManifestElementAndApi } from '../types/base.types.js';
|
||||
import { loadManifestElement } from './load-manifest-element.function.js';
|
||||
import type { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api';
|
||||
|
||||
export async function createExtensionElement<ElementType extends UmbControllerHostElement>(
|
||||
manifest: ManifestElement<ElementType> | ManifestElementAndApi<ElementType>,
|
||||
export async function createExtensionElement<ElementType extends HTMLElement>(
|
||||
manifest: ManifestElement<ElementType> | ManifestElementAndApi<any>,
|
||||
fallbackElement?: string,
|
||||
): Promise<ElementType | undefined> {
|
||||
if (manifest.element) {
|
||||
|
||||
Reference in New Issue
Block a user