25 lines
548 B
TypeScript
25 lines
548 B
TypeScript
/// <reference types="astro/client" />
|
|
/// <reference path="../.astro/types.d.ts" />
|
|
/// <reference types="@astrojs/netlify/functions" />
|
|
|
|
import type { SupabaseClient } from '@supabase/supabase-js';
|
|
import type { Locale } from './lib/i18n';
|
|
|
|
declare global {
|
|
namespace App {
|
|
interface Locals {
|
|
locale: Locale;
|
|
supabase: SupabaseClient;
|
|
user: {
|
|
id: string;
|
|
email?: string;
|
|
fullName?: string | null;
|
|
avatarUrl?: string | null;
|
|
isAdmin: boolean;
|
|
} | null;
|
|
}
|
|
}
|
|
}
|
|
|
|
export {};
|