Fix some minor type bugs

- using disabled in implementing classesd would cause IDE to complain it was missing
- superclass type was being lost
This commit is contained in:
nathan 2024-02-22 14:32:31 -07:00
parent 1bd9758af1
commit 3b823bd9ed

View File

@ -25,6 +25,7 @@ window.customElements.define('lion-validation-feedback', LionValidationFeedback)
export declare class Et2InputWidgetInterface
{
readonly : boolean;
disabled : boolean;
protected value : string | number | Object;
public required : boolean;
@ -710,6 +711,6 @@ const Et2InputWidgetMixin = <T extends Constructor<LitElement>>(superclass : T)
}
}
return Et2InputWidgetClass;
return Et2InputWidgetClass as Constructor & T;
}
export const Et2InputWidget = dedupeMixin(Et2InputWidgetMixin);