# HG changeset patch # User drewp@bigasterisk.com # Date 1715569652 25200 # Node ID 40d5a54dec9945a63e8488abb99cea84eef11f4b # Parent 3a2e58725037e6587bd1ca43220f1bac0b5692f2 ts warnings diff -r 3a2e58725037 -r 40d5a54dec99 web/TiledHome.ts --- a/web/TiledHome.ts Sun May 12 19:56:25 2024 -0700 +++ b/web/TiledHome.ts Sun May 12 20:07:32 2024 -0700 @@ -4,7 +4,7 @@ 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 @@ // 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, ""); };