style: fix no-explicit-any — replace with proper TypeScript types
This commit is contained in:
@@ -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}` }
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user