Fix TypeScript errors from recent changes

This commit is contained in:
Eli Ribble 2026-03-22 18:27:13 +00:00
parent 11f56bfd1c
commit 354c07f2bf
No known key found for this signature in database
3 changed files with 11 additions and 5 deletions

View file

@ -1,3 +1,5 @@
import { Address } from "./types";
export function shortAddress(a: Address): string {
if (!a) return "";
return `${a.number} ${a.street}, ${a.locality}`;

View file

@ -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 {

View file

@ -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 {}