add typescript support in svelte files, .js to .ts

This commit is contained in:
2025-06-10 11:05:23 +02:00
parent 2278b18f02
commit acef68dc26
37 changed files with 93 additions and 24 deletions

View File

@@ -0,0 +1,9 @@
import { redirect } from '@sveltejs/kit';
/** @type {import('./$types').PageServerLoad} */
export function load(event) {
if (!event.locals.user && event.url.pathname !== '/anmeldung') throw redirect(303, '/anmeldung');
return {
user: event.locals.user
};
}