Files
web-app-launcher/src/app.d.ts
T
alexei.dolgolyov f1b1aa5975 feat(mvp): phase 2 - database schema & services layer
Define full Prisma schema (10 models), run initial migration, build core
services (auth, user, group, app, board, permission), Zod validators,
type definitions, API response envelope, constants, and seed script.
2026-03-24 20:00:21 +03:00

33 lines
479 B
TypeScript

// See https://svelte.dev/docs/kit/types#app.d.ts
declare global {
namespace App {
interface Error {
message: string;
code?: string;
}
interface Locals {
user: {
id: string;
email: string;
displayName: string;
role: 'admin' | 'user';
} | null;
session: {
id: string;
expiresAt: Date;
} | null;
}
interface PageData {
user: App.Locals['user'];
}
// interface PageState {}
// interface Platform {}
}
}
export {};