Files
clearity/src/app.d.ts
T
kdaniel2410 b5ba84b19f feat: add organization context model
Introduce organizations as the top-level workspace model with address and bank-detail fields.

Store the active organization on Better Auth sessions and load organization context for dashboard routes.

Add the migration that creates organizations and backfills existing records to the default organization.
2026-06-06 14:14:00 +01:00

26 lines
517 B
TypeScript

import type { User, Session } from 'better-auth/minimal';
// See https://svelte.dev/docs/kit/types#app.d.ts
// for information about these interfaces
declare global {
namespace App {
interface Platform {
env: Env;
ctx: ExecutionContext;
caches: CacheStorage;
cf?: IncomingRequestCfProperties;
}
interface Locals {
user?: User;
session?: Session & { activeOrganizationId?: string | null };
}
// interface Error {}
// interface PageData {}
// interface PageState {}
}
}
export {};