From c481dbc5c4d3a7fb2497b2fd80d9c4eacc4f9acb Mon Sep 17 00:00:00 2001 From: OllyNicholass Date: Tue, 7 May 2024 20:32:04 +0100 Subject: [PATCH] chore(*): update app declaration with supabase data --- src/app.d.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app.d.ts b/src/app.d.ts index 53db644..5ca5b29 100644 --- a/src/app.d.ts +++ b/src/app.d.ts @@ -1,18 +1,22 @@ // See https://kit.svelte.dev/docs/types#app // for information about these interfaces // and what to do when importing types +import { SupabaseClient, Session, User } from '@supabase/supabase-js' declare global { const __DATE__: string; const __RELOAD_SW__: boolean; namespace App { // interface Error {} interface Locals { + supabase: SupabaseClient + safeGetSession(): Promise<{ session: Session | null; user: User | null }> userid: string; buildDate: string; periodicUpdates: boolean; } - - // interface PageData {} + interface PageData { + session: Session | null + } // interface PageState {} // interface Platform {} }