Files
classroomio/apps/dashboard/src/app.d.ts
T

28 lines
714 B
TypeScript
Raw Normal View History

import type { TUser, TSession, TProfile, TOrganization, TOrganizationmember, TOrganizationPlan } from '@cio/db/types';
type AccountOrganization = TOrganization & {
member: TOrganizationmember | null;
plan:
| (Pick<TOrganizationPlan, 'planName' | 'isActive' | 'provider' | 'subscriptionId'> & { customerId: string })
| null;
};
// src/app.d.ts
declare global {
namespace App {
interface Locals {
user: TUser | null;
session: TSession | null;
profile: TProfile | null;
organizations: AccountOrganization[];
fromSessions?: boolean;
// getAccount: () =>
}
// interface PageData {}
// interface Error {}
// interface Platform {}
}
}
export {};