17 lines
419 B
TypeScript
17 lines
419 B
TypeScript
import { z } from "zod"
|
|
|
|
export const validateHotelPageSchema = z.object({
|
|
hotel_page: z.object({
|
|
hotel_page_id: z.string(),
|
|
title: z.string(),
|
|
url: z.string(),
|
|
}),
|
|
})
|
|
|
|
// Will be extended once we introduce more functionality to our entries.
|
|
export type HotelPageDataRaw = z.infer<typeof validateHotelPageSchema>
|
|
|
|
type HotelPageRaw = HotelPageDataRaw["hotel_page"]
|
|
|
|
export type HotelPage = HotelPageRaw
|