Mercurial > code > home > repos > light9
changeset 2382:40d5a54dec99
ts warnings
author | drewp@bigasterisk.com |
---|---|
date | Sun, 12 May 2024 20:07:32 -0700 |
parents | 3a2e58725037 |
children | 22c1b5c60a64 |
files | web/TiledHome.ts |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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, ""); };