mirror of
https://github.com/jcreek/LivingDexTracker.git
synced 2026-09-18 19:42:04 +00:00
4c268ba15c
POKEDEX_PERFORMANCE=true reports auth, ownership, scopes, entries and catches with fixed labels only: no IDs, query strings, cookies or entry content ever reach the header. Auth is measured in the hook, where the session is actually resolved, and handed to the page load through locals.
32 lines
770 B
TypeScript
32 lines
770 B
TypeScript
import 'vite-plugin-pwa/svelte';
|
|
import 'vite-plugin-pwa/info';
|
|
import 'vite-plugin-pwa/pwa-assets';
|
|
import { SupabaseClient, Session, User } from '@supabase/supabase-js';
|
|
|
|
// See https://kit.svelte.dev/docs/types#app
|
|
// for information about these interfaces
|
|
// and what to do when importing types
|
|
declare global {
|
|
const __DATE__: string;
|
|
const __RELOAD_SW__: boolean;
|
|
namespace App {
|
|
// interface Error {}
|
|
interface Locals {
|
|
supabase: SupabaseClient;
|
|
pokedexAuthMs?: number;
|
|
safeGetSession(): Promise<{ session: Session | null; user: User | null }>;
|
|
userid: string;
|
|
buildDate: string;
|
|
periodicUpdates: boolean;
|
|
}
|
|
|
|
interface PageData {
|
|
session: Session | null;
|
|
}
|
|
// interface PageState {}
|
|
// interface Platform {}
|
|
}
|
|
}
|
|
|
|
export {};
|