# HG changeset patch # User drewp@bigasterisk.com # Date 2024-05-13 03:07:32 # Node ID 40d5a54dec9945a63e8488abb99cea84eef11f4b # Parent 3a2e58725037e6587bd1ca43220f1bac0b5692f2 ts warnings diff --git a/web/TiledHome.ts b/web/TiledHome.ts --- a/web/TiledHome.ts +++ b/web/TiledHome.ts @@ -4,7 +4,7 @@ import * as FlexLayout from "flexlayout- export { Light9DeviceSettings } from "./live/Light9DeviceSettings"; export { Light9CollectorUi } from "./collector/Light9CollectorUi"; -const config:FlexLayout.IJsonModel = { +const config: FlexLayout.IJsonModel = { global: {}, borders: [], layout: { @@ -30,12 +30,13 @@ const e = React.createElement; // see https://github.com/lit/lit/tree/main/packages/labs/react class Main extends React.Component { - constructor(props) { + state: { model: FlexLayout.Model }; + constructor(props: any) { super(props); this.state = { model: FlexLayout.Model.fromJson(config) }; } - factory = (node) => { + factory = (node: any) => { var component = node.getComponent(); return e(component, null, ""); };