From 46f359bb1e724f6bfc8820dda36b78b0d2acbcb5 Mon Sep 17 00:00:00 2001 From: Darius Date: Thu, 5 Feb 2026 22:16:06 +0100 Subject: [PATCH] add LastPoll Type --- dist/homepage.d.ts | 4 ++++ dist/homepage.d.ts.map | 2 +- src/homepage.ts | 5 +++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/dist/homepage.d.ts b/dist/homepage.d.ts index cd50940..fc51ee4 100644 --- a/dist/homepage.d.ts +++ b/dist/homepage.d.ts @@ -5,4 +5,8 @@ export type FullInformation = { ha_temp: string | null; tidal_current: TidalGetCurrent | null; }; +export type LastPoll = { + time: number | null; + result: FullInformation | null; +}; //# sourceMappingURL=homepage.d.ts.map \ No newline at end of file diff --git a/dist/homepage.d.ts.map b/dist/homepage.d.ts.map index 072180e..e4bcd21 100644 --- a/dist/homepage.d.ts.map +++ b/dist/homepage.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"homepage.d.ts","sourceRoot":"","sources":["../src/homepage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,MAAM,MAAM,eAAe,GAAG;IAC7B,gBAAgB,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC7C,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,aAAa,EAAE,eAAe,GAAG,IAAI,CAAC;CACtC,CAAC"} \ No newline at end of file +{"version":3,"file":"homepage.d.ts","sourceRoot":"","sources":["../src/homepage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,MAAM,MAAM,eAAe,GAAG;IAC7B,gBAAgB,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC7C,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,aAAa,EAAE,eAAe,GAAG,IAAI,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,MAAM,EAAE,eAAe,GAAG,IAAI,CAAC;CAC/B,CAAC"} \ No newline at end of file diff --git a/src/homepage.ts b/src/homepage.ts index de5b778..aad0034 100644 --- a/src/homepage.ts +++ b/src/homepage.ts @@ -6,3 +6,8 @@ export type FullInformation = { ha_temp: string | null; tidal_current: TidalGetCurrent | null; }; + +export type LastPoll = { + time: number | null; + result: FullInformation | null; +};