From 354c07f2bfa3ad059ef1150fa45a6e0222b8a22d Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Sun, 22 Mar 2026 18:27:13 +0000 Subject: [PATCH] Fix TypeScript errors from recent changes --- ts/format.ts | 2 ++ ts/store/user.ts | 2 ++ ts/types.ts | 12 +++++++----- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ts/format.ts b/ts/format.ts index 76de117a..6e63e98b 100644 --- a/ts/format.ts +++ b/ts/format.ts @@ -1,3 +1,5 @@ +import { Address } from "./types"; + export function shortAddress(a: Address): string { if (!a) return ""; return `${a.number} ${a.street}, ${a.locality}`; diff --git a/ts/store/user.ts b/ts/store/user.ts index 86015ee3..b6014837 100644 --- a/ts/store/user.ts +++ b/ts/store/user.ts @@ -5,11 +5,13 @@ import { SSEManager } from "../SSEManager"; // Define interfaces matching your Go structs interface URLsAPI { communication: string; + signal: string; } interface URLs { api: URLsAPI; tegola: string; + tile: string; } interface User { diff --git a/ts/types.ts b/ts/types.ts index 5727d9ba..e2c7f255 100644 --- a/ts/types.ts +++ b/ts/types.ts @@ -4,14 +4,16 @@ export interface Address { street: string; } -export interface PublicReport { - created: string; - type: string; -} - export interface Communication { created: string; id: string; public_report: PublicReport | null; type: string; } + +export interface PublicReport { + created: string; + type: string; +} + +export interface Signal {}