diff --git a/src/components/structures/LeftPanelWidget.tsx b/src/components/structures/LeftPanelWidget.tsx index e8dfe955a8..4daec76d08 100644 --- a/src/components/structures/LeftPanelWidget.tsx +++ b/src/components/structures/LeftPanelWidget.tsx @@ -23,7 +23,7 @@ import {useRovingTabIndex} from "../../accessibility/RovingTabIndex"; import {Key} from "../../Keyboard"; import {useLocalStorageState} from "../../hooks/useLocalStorageState"; import MatrixClientContext from "../../contexts/MatrixClientContext"; -import WidgetUtils, {IWidget} from "../../utils/WidgetUtils"; +import WidgetUtils, {IWidgetEvent} from "../../utils/WidgetUtils"; import {useAccountData} from "../../hooks/useAccountData"; import AppTile from "../views/elements/AppTile"; import {useSettingValue} from "../../hooks/useSettings"; @@ -39,7 +39,7 @@ const INITIAL_HEIGHT = 280; const LeftPanelWidget: React.FC = ({ onResize }) => { const cli = useContext(MatrixClientContext); - const mWidgetsEvent = useAccountData>(cli, "m.widgets"); + const mWidgetsEvent = useAccountData>(cli, "m.widgets"); const leftPanelWidgetId = useSettingValue("Widgets.leftPanel"); const app = useMemo(() => { if (!mWidgetsEvent || !leftPanelWidgetId) return null; diff --git a/src/integrations/IntegrationManagers.ts b/src/integrations/IntegrationManagers.ts index 1791e92514..a29c74c5eb 100644 --- a/src/integrations/IntegrationManagers.ts +++ b/src/integrations/IntegrationManagers.ts @@ -120,7 +120,7 @@ export class IntegrationManagers { if (!data) return; const uiUrl = w.content['url']; - const apiUrl = data['api_url']; + const apiUrl = data['api_url'] as string; if (!apiUrl || !uiUrl) return; const manager = new IntegrationManagerInstance( diff --git a/src/stores/widgets/StopGapWidget.ts b/src/stores/widgets/StopGapWidget.ts index 17302d0ab9..edce39d033 100644 --- a/src/stores/widgets/StopGapWidget.ts +++ b/src/stores/widgets/StopGapWidget.ts @@ -74,7 +74,7 @@ class ElementWidget extends Widget { if (WidgetType.JITSI.matches(this.type)) { return WidgetUtils.getLocalJitsiWrapperUrl({ forLocalRender: true, - auth: super.rawData?.auth, // this.rawData can call templateUrl, do this to prevent looping + auth: super.rawData?.auth as string, // this.rawData can call templateUrl, do this to prevent looping }); } return super.templateUrl; @@ -84,7 +84,7 @@ class ElementWidget extends Widget { if (WidgetType.JITSI.matches(this.type)) { return WidgetUtils.getLocalJitsiWrapperUrl({ forLocalRender: false, // The only important difference between this and templateUrl() - auth: super.rawData?.auth, + auth: super.rawData?.auth as string, }); } return this.templateUrl; // use this instead of super to ensure we get appropriate templating