mirror of
https://github.com/jcreek/SvelteKitSaasBoilerplate.git
synced 2026-07-15 12:03:49 +00:00
refactor(#35): update type for supabase client in nav
This commit is contained in:
@@ -6,9 +6,10 @@
|
|||||||
import Dropdown from '../Dropdown.svelte';
|
import Dropdown from '../Dropdown.svelte';
|
||||||
import { basket, type Basket } from '$lib/stores/basket.js';
|
import { basket, type Basket } from '$lib/stores/basket.js';
|
||||||
import { onDestroy } from 'svelte';
|
import { onDestroy } from 'svelte';
|
||||||
|
import type { Database } from '$lib/types/supabase';
|
||||||
|
|
||||||
export let session: Session | null;
|
export let session: Session | null;
|
||||||
export let supabase: SupabaseClient<any, 'public', any>;
|
export let supabase: SupabaseClient<Database>;
|
||||||
|
|
||||||
let localBasket: Basket;
|
let localBasket: Basket;
|
||||||
const unsubscribeToBasket = basket.subscribe((value) => {
|
const unsubscribeToBasket = basket.subscribe((value) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user