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