forked from mirror/crumbs-original
Define App.Locals.user interface for session user data. Add User type to shared types (mirrors DB columns minus passwordHash). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
21 lines
386 B
TypeScript
21 lines
386 B
TypeScript
// See https://svelte.dev/docs/kit/types#app.d.ts
|
|
// for information about these interfaces
|
|
declare global {
|
|
namespace App {
|
|
// interface Error {}
|
|
interface Locals {
|
|
user: {
|
|
id: number;
|
|
email: string;
|
|
displayName: string;
|
|
role: 'admin' | 'user';
|
|
} | null;
|
|
}
|
|
// interface PageData {}
|
|
// interface PageState {}
|
|
// interface Platform {}
|
|
}
|
|
}
|
|
|
|
export {};
|