make sure type prop is optional

This commit is contained in:
Niels Lyngsø
2023-04-26 14:20:25 +02:00
parent 27f8275c48
commit eb6d85a198
2 changed files with 3 additions and 3 deletions

View File

@@ -158,7 +158,7 @@ export interface ManifestWithLoader<LoaderReturnType> extends ManifestBase {
*/
export interface ManifestClass<ClassType = unknown> extends ManifestWithLoader<{ default: ClassConstructor<ClassType> }> {
//type: ManifestStandardTypes;
readonly CLASS_TYPE: ClassType;
readonly CLASS_TYPE?: ClassType;
/**
* The file location of the javascript file to load
@@ -185,7 +185,7 @@ export interface ManifestClassWithClassConstructor<T = unknown> extends Manifest
export interface ManifestElement<ElementType extends HTMLElement = HTMLElement>
extends ManifestWithLoader<{ default: ClassConstructor<ElementType> } | Omit<object, 'default'>> {
//type: ManifestStandardTypes;
readonly ELEMENT_TYPE: ElementType;
readonly ELEMENT_TYPE?: ElementType;
/**
* The file location of the javascript file to load

View File

@@ -1,4 +1,4 @@
import type { UmbPropertyEditorElement } from './interfaces';
import type { UmbPropertyEditorElement } from '../interfaces';
import type { ManifestElement, ManifestBase } from '.';
export interface ManifestPropertyEditorUI extends ManifestElement<UmbPropertyEditorElement> {