chore(client): fix typecheck

This commit is contained in:
Elian Doran 2025-12-21 22:55:20 +02:00
parent 7567903da3
commit af37c175a3
No known key found for this signature in database
2 changed files with 6 additions and 5 deletions

View File

@ -103,7 +103,7 @@ export class WidgetsByParent {
}
get(parentName: ParentName) {
const widgets: (Component | VNode)[] = this.getLegacyWidgets(parentName);
const widgets: (BasicWidget | VNode)[] = this.getLegacyWidgets(parentName);
for (const preactWidget of this.getPreactWidgets(parentName)) {
const el = h(preactWidget.render, {});
const widget = new ReactWrappedWidget(el);
@ -169,6 +169,7 @@ async function getWidgetBundlesByParent() {
}
} catch (e) {
toastService.showPersistent({
id: `custom-widget-list-failure`,
title: t("toast.widget-list-error.title"),
message: getErrorMessage(e),
icon: "bx bx-error-circle"

View File

@ -1,9 +1,9 @@
import FlexContainer from "./flex_container.js";
import splitService from "../../services/resizer.js";
import type RightPanelWidget from "../right_panel_widget.js";
import type { EventData, EventNames } from "../../components/app_context.js";
import splitService from "../../services/resizer.js";
import type BasicWidget from "../basic_widget.js";
import FlexContainer from "./flex_container.js";
export default class RightPaneContainer extends FlexContainer<RightPanelWidget> {
export default class RightPaneContainer extends FlexContainer<BasicWidget> {
private rightPaneHidden: boolean;
private firstRender: boolean;