changeset 3:c04563fc8616

quiet some ts warnings
author drewp@bigasterisk.com
date Sun, 28 Jan 2024 16:00:43 -0800
parents c6fd04e07db0
children e8e4fd6d5619
files src/main.ts
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/main.ts	Sun Jan 28 15:44:10 2024 -0800
+++ b/src/main.ts	Sun Jan 28 16:00:43 2024 -0800
@@ -28,8 +28,10 @@
       }
     `,
   ];
-  @state() lights: object[] = [];
-  @state() reportTime: Date;
+
+  // bug https://github.com/lit/lit/issues/4305
+  @(state as any)() lights: object[] = [];
+  @(state as any)() reportTime: Date = new Date(0);
 
   connectedCallback(): void {
     super.connectedCallback();