Files
familienarchiv/frontend/src/app.d.ts
Marcel 168225d67c feat(frontend): add profile page and public user profile page
/profile: two-card layout with personal info form (name, birth date,
email, contact) and password change form, each with independent actions.
/users/[id]: read-only public view showing name, username, email, contact
with avatar circle initials.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-20 23:04:10 +01:00

33 lines
575 B
TypeScript

// src/app.d.ts
declare global {
namespace App {
// Define the User structure matching your Java Entity
interface User {
id: string;
username: string;
firstName?: string;
lastName?: string;
birthDate?: string;
email?: string;
contact?: string;
groups: {
name: string;
permissions: string[];
}[];
enabled: boolean;
createdAt: string;
}
interface Locals {
user?: User; // locals.user is optional (undefined if not logged in)
}
interface PageData {
user?: User; // Available in $page.data.user
}
}
}
export {};