···11<script lang="ts">
22- import type { SnippetId, UserSnippet } from "@/utils/storage";
22+ import type { UserSnippet } from "@/utils/storage";
33 import { globalSettings, snippets } from "@/utils/storage";
4455 import Title from "../components/Title.svelte";
+2-5
src/utils/periodUtils.ts
···11// these utility functions are intended to be used on the dashboard, as that is where the timetable is displayed
2233-import { logger } from "./logger";
44-53interface PeriodHeader {
64 name: string;
75 time: {
···138136 return date;
139137 });
140138 return { start, end };
141141- } catch (error) {
142142- logger.error("Error extracting times:", error);
143143- throw new Error("Failed to extract times");
139139+ } catch (e) {
140140+ throw new Error("Failed to extract times", e as Error);
144141 }
145142}