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, ""); };