diff --git a/src/lib/index.ts b/src/lib/index.ts index af78d11..93b15dc 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -85,9 +85,17 @@ export function haversineDistance( return radius * 2 * Math.asin(Math.sqrt(e1)); } -export function collectTimings(study_space_hours: Partial>[]) { +export function collectTimings( + study_space_hours: Omit< + Table<"study_space_hours">, + "id" | "created_at" | "updated_at" | "study_space_id" + >[] +) { // Collect all timing entries - const timingsPerDay: Record[]> = { + const timingsPerDay: Record< + number, + Omit, "id" | "created_at" | "updated_at" | "study_space_id">[] + > = { 0: [], 1: [], 2: [],