style: fix no-explicit-any — replace with proper TypeScript types
This commit is contained in:
@@ -112,7 +112,7 @@
|
||||
|
||||
if (response.ok) {
|
||||
const data = await response.json();
|
||||
defaultHours = data.map((hour: any) => ({
|
||||
defaultHours = data.map((hour: { weekday: number; startTime: string; endTime: string; isOpen: boolean }) => ({
|
||||
weekday: hour.weekday,
|
||||
start_time: formatTime(hour.startTime),
|
||||
end_time: formatTime(hour.endTime),
|
||||
|
||||
Reference in New Issue
Block a user