feat(SW-415): Update typings
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
import { Price, Product } from "@/server/routers/hotels/output"
|
||||
import { z } from "zod"
|
||||
|
||||
import { Product, productTypePriceSchema } from "@/server/routers/hotels/output"
|
||||
|
||||
type ProductPrice = z.output<typeof productTypePriceSchema>
|
||||
|
||||
export type FlexibilityOptionProps = {
|
||||
product: Product | undefined
|
||||
@@ -8,7 +12,7 @@ export type FlexibilityOptionProps = {
|
||||
priceInformation?: Array<string>
|
||||
}
|
||||
|
||||
export interface PriceTableProps {
|
||||
publicPrice?: Product["productType"]["public"]
|
||||
memberPrice?: Product["productType"]["member"]
|
||||
export interface PriceListProps {
|
||||
publicPrice?: ProductPrice | Record<string, never>
|
||||
memberPrice?: ProductPrice | Record<string, never>
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
import type { PopoverProps } from "react-aria-components"
|
||||
|
||||
export interface PricePopoverProps extends Omit<PopoverProps, "children"> {
|
||||
children: React.ReactNode
|
||||
}
|
||||
Reference in New Issue
Block a user