// See https://kit.svelte.dev/docs/types#app // for information about these interfaces // and what to do when importing types // src/app.d.ts declare global { namespace App { interface PageData { flash?: { type: 'success' | 'error'; message: string }; } interface Locals { auth: import('lucia-auth').AuthRequest; prisma: PrismaClient; user: Lucia.UserAttributes; startTimer: number; error: string; errorId: string; errorStackTrace: string; message: unknown; track: unknown; } interface Error { code?: string; errorId?: string; } } } // interface PageData {} // interface Error {} // interface Platform {} /// declare global { namespace Lucia { type Auth = import('$lib/lucia').Auth; type UserAttributes = { email: string; username: string; firstName: string; lastName: string; role: string; verified: boolean; receiveEmail: boolean; token: string; }; } } // THIS IS IMPORTANT!!! export {};