style: fix no-explicit-any — replace with proper TypeScript types
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
import { Input } from '$lib/components/ui/input';
|
||||
import { Textarea } from '$lib/components/ui/textarea';
|
||||
import CharCounter from '$lib/components/ui/CharCounter.svelte';
|
||||
import type { Booking, BookingService, Service } from '$lib/types/booking';
|
||||
import type { Booking, BookingService, Payment, Service } from '$lib/types/booking';
|
||||
|
||||
interface Props {
|
||||
open: boolean;
|
||||
@@ -112,7 +112,7 @@
|
||||
override_price: s.override_price,
|
||||
override_duration_minutes: s.override_duration_minutes
|
||||
})),
|
||||
payments: (data.payments || []).map((p: any) => ({
|
||||
payments: (data.payments || []).map((p: Payment) => ({
|
||||
id: p.id,
|
||||
booking_id: p.booking_id,
|
||||
payment_type: p.payment_type,
|
||||
|
||||
Reference in New Issue
Block a user