style: fix no-explicit-any — replace with proper TypeScript types

This commit is contained in:
2026-06-25 14:46:51 +01:00
parent 6291d04b47
commit a8d04b77e2
6 changed files with 10 additions and 9 deletions
@@ -14,6 +14,7 @@
import UserModal from '$lib/components/admin/UserModal.svelte';
import EditRequestModal from '$lib/components/admin/EditRequestModal.svelte';
import { toast } from 'svelte-sonner';
import type { Booking } from '$lib/types/booking';
interface Notification {
id: number;
@@ -68,7 +69,7 @@
let includeAcknowledged = $state(false);
let showApprovalModal = $state(false);
let selectedBooking = $state<any>(null);
let selectedBooking = $state<Booking | null>(null);
let showBookingModal = $state(false);
let showUserModal = $state(false);
let selectedUserId = $state<string | null>(null);
@@ -154,7 +155,7 @@
}
}
async function fetchBookingDetails(bookingId: string): Promise<any> {
async function fetchBookingDetails(bookingId: string): Promise<Booking | null> {
const response = await fetch(`/api/admin/bookings/${bookingId}`, {
headers: { Authorization: `Bearer ${authStore.currentToken}` }
});