type unknown for value to element

This commit is contained in:
Niels Lyngsø
2023-01-06 20:29:34 +01:00
parent 19dbe6002e
commit 5189df66e8
2 changed files with 6 additions and 6 deletions

View File

@@ -68,8 +68,8 @@ export class UmbContentPropertyElement extends UmbLitElement {
description=${ifDefined(this.property?.description)}
alias="${ifDefined(this.property?.alias)}"
property-editor-ui-alias="${ifDefined(this._propertyEditorUIAlias)}"
.value="${this.value}"
.config="${this._dataTypeData}"></umb-property>`;
.value=${this.value}
.config=${this._dataTypeData}></umb-property>`;
}
}

View File

@@ -111,15 +111,15 @@ export class UmbPropertyElement extends UmbLitElement {
/**
* Property Editor UI Alias. Render the Property Editor UI registered for this alias.
* @public
* @type {object | string}
* @type {unknown}
* @attr
* @default undefined
*/
@property({ attribute: false })
@property({attribute: false })
public get value() {
return this._propertyContext.getValue() as any;
return this._propertyContext.getValue();
}
public set value(value: object | string) {
public set value(value) {
this._propertyContext.setValue(value);
}