fix: Types

This commit is contained in:
Barf-Vader
2025-06-16 23:25:42 +01:00
parent 0239f86985
commit 03bca19527

View File

@@ -85,9 +85,17 @@ export function haversineDistance(
return radius * 2 * Math.asin(Math.sqrt(e1));
}
export function collectTimings(study_space_hours: Partial<Table<"study_space_hours">>[]) {
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<number, Table<"study_space_hours">[]> = {
const timingsPerDay: Record<
number,
Omit<Table<"study_space_hours">, "id" | "created_at" | "updated_at" | "study_space_id">[]
> = {
0: [],
1: [],
2: [],