Migrated codebase to TypeScript

This commit is contained in:
2026-05-08 17:33:13 +02:00
parent 2246b57c2a
commit 1af46c0fa3
15 changed files with 118 additions and 96 deletions
+10
View File
@@ -0,0 +1,10 @@
import type { PageServerLoad } from './$types.js';
import { fetchStations } from '$lib/api.js';
export const load: PageServerLoad = async ({ fetch }) => {
try {
return { stations: await fetchStations(fetch) };
} catch {
return { stations: [], loadError: 'Impossibile caricare le centraline. Controlla la connessione e riprova.' };
}
};