Files
web/types/hotel.ts
2024-07-08 12:36:38 +02:00

11 lines
387 B
TypeScript

import { z } from "zod"
import { getHotelDataSchema } from "@/server/routers/hotels/output"
export type HotelData = z.infer<typeof getHotelDataSchema>
export type HotelAddress = HotelData["data"]["attributes"]["address"]
export type HotelLocation = HotelData["data"]["attributes"]["location"]
export type HotelTripAdvisor =
HotelData["data"]["attributes"]["ratings"]["tripAdvisor"]