refactor(#60): Strongly type supabase client

This commit is contained in:
Josh Creek
2024-11-10 18:10:56 +00:00
parent 7ec5c5bb38
commit 6a10ab5983
+2 -1
View File
@@ -1,5 +1,6 @@
<script lang="ts"> <script lang="ts">
import { createEventDispatcher, onDestroy } from 'svelte'; import { createEventDispatcher, onDestroy } from 'svelte';
import type { SupabaseClient } from '@supabase/supabase-js';
import { basket, type Basket } from '$lib/stores/basket.js'; import { basket, type Basket } from '$lib/stores/basket.js';
const dispatch = createEventDispatcher(); const dispatch = createEventDispatcher();
@@ -9,7 +10,7 @@
} }
// Access the supabase client from the layout data // Access the supabase client from the layout data
export let supabase: any; export let supabase: SupabaseClient;
let localBasket: Basket; let localBasket: Basket;
const unsubscribe = basket.subscribe((value) => { const unsubscribe = basket.subscribe((value) => {