refactor: improve type safety by replacing any types with specific interfaces across API services and components.

This commit is contained in:
taDuc
2026-05-14 21:54:44 +07:00
parent dca3ca67ad
commit b220798978
20 changed files with 249 additions and 71 deletions
+6 -4
View File
@@ -9,8 +9,9 @@ export type { GeometriesBBoxQuery } from "@/uhm/types/api";
export type EntityGeometrySearchGeo = {
id: string;
type: string | null;
draw_geometry: unknown;
binding?: unknown;
draw_geometry: Geometry;
binding?: string[];
time_start?: number | null;
time_end?: number | null;
};
@@ -106,8 +107,9 @@ export async function searchGeometriesByEntityName(
type GeometryRow = {
id: string;
geo_type: number;
draw_geometry: unknown;
binding?: unknown;
draw_geometry: Geometry;
binding?: string[];
time_start?: number;
time_end?: number;
bbox?: {