Skip to content

Commit

Permalink
fix: nullable conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejak committed Oct 9, 2024
1 parent 2069ffc commit ade059e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/booking/Offers/OfferTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ export interface OfferSlice {
* - `"4"`: premium seating, additional legroom and recline. Situated in business class or higher.
* - `"5"`: deluxe seating, additional legroom and reclines to lie flat position. Situated in business class or higher.
*/
ngs_shelf: number
ngs_shelf: number | null
}

export interface OfferSliceSegment {
Expand Down
7 changes: 3 additions & 4 deletions src/types/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,21 +162,20 @@ export type FlightsConditions = {
* passengers if you require this level of granularity.
*/
export type OfferSliceConditions = FlightsConditions & {
// TODO: ask James about this
/**
* Whether passengers are able to select a seat prior to check in.
*/
advance_seat_selection: boolean
advance_seat_selection: boolean | null

/**
* Whether passengers are given preferential boarding over others passengers in their cabin.
*/
priority_boarding: boolean
priority_boarding: boolean | null

/**
* Whether passengers are given access to a fast track lane during check in.
*/
priority_check_in: boolean
priority_check_in: boolean | null
}

/**
Expand Down

0 comments on commit ade059e

Please sign in to comment.