diff --git a/ui/element/src/mixins/signal.ts b/ui/element/src/mixins/signal.ts index 6d4f9267d..ccc54d8a9 100644 --- a/ui/element/src/mixins/signal.ts +++ b/ui/element/src/mixins/signal.ts @@ -4,19 +4,19 @@ import type {Constructor} from '../type.js'; import type {ListenerInterface} from '@alwatr/signal'; export declare class SignalMixinInterface extends LitElement { - protected _signalListenerList: Array>; + protected _signalListenerList: Array; } export function SignalMixin>( superClass: ClassType, ): Constructor & ClassType { class SignalMixinClass extends superClass { - protected _signalListenerList: Array> = []; + protected _signalListenerList: Array = []; override disconnectedCallback(): void { super.disconnectedCallback(); - this._signalListenerList.forEach((listener) => listener.remove()); + this._signalListenerList.forEach((listener) => (listener as ListenerInterface).remove()); } }