fix: Types
This commit is contained in:
@@ -85,9 +85,17 @@ export function haversineDistance(
|
|||||||
return radius * 2 * Math.asin(Math.sqrt(e1));
|
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
|
// 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: [],
|
0: [],
|
||||||
1: [],
|
1: [],
|
||||||
2: [],
|
2: [],
|
||||||
|
|||||||
Reference in New Issue
Block a user