fix: rename children to childrenInRoom
This commit is contained in:
@@ -5,7 +5,7 @@ export type ChildBed = {
|
||||
value: number
|
||||
}
|
||||
|
||||
export type TGuestsRoom = Required<Pick<Room, "adults" | "children">>
|
||||
export type TGuestsRoom = Required<Pick<Room, "adults" | "childrenInRoom">>
|
||||
|
||||
export type GuestsRoomPickerProps = {
|
||||
index: number
|
||||
|
||||
@@ -68,6 +68,6 @@ export type SelectHotelMapContainerProps = {
|
||||
city: Location
|
||||
selectHotelParams: SelectHotelSearchParams
|
||||
adultsInRoom: number
|
||||
childrenInRoom: string | undefined
|
||||
child: Child[] | undefined
|
||||
childrenInRoomString: string | undefined
|
||||
childrenInRoom: Child[] | undefined
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ export interface SelectHotelProps {
|
||||
reservationParams: {
|
||||
selectHotelParams: SelectHotelSearchParams
|
||||
adultsInRoom: number
|
||||
childrenInRoom: string | undefined
|
||||
childrenInRoomArray: Child[] | undefined
|
||||
childrenInRoomString: string | undefined
|
||||
childrenInRoom: Child[] | undefined
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@ export interface SelectHotelSearchParams {
|
||||
city: string
|
||||
fromDate: string
|
||||
toDate: string
|
||||
rooms: Pick<Room, "adults" | "children">[]
|
||||
[key: string]: string | string[] | Pick<Room, "adults" | "children">[]
|
||||
rooms: Pick<Room, "adults" | "childrenInRoom">[]
|
||||
[key: string]: string | string[] | Pick<Room, "adults" | "childrenInRoom">[]
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ export interface Room {
|
||||
roomTypeCode: string
|
||||
rateCode: string
|
||||
counterRateCode: string
|
||||
children?: Child[]
|
||||
childrenInRoom?: Child[]
|
||||
packages?: RoomPackageCodeEnum[]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user