@duffel/components
Version:
Component library to build your travel product with Duffel.
9 lines (8 loc) • 566 B
TypeScript
import { OfferAvailableServiceBaggageMetadata, OfferSlice, OfferSliceSegmentPassenger } from "@duffel/api/types";
/**
* Returns the passenger baggages object with the largest quantity of baggages
* of a specified type for a slice. Baggage quantity can (very occasionally)
* vary across passengers and segments in a slice, so the 'max' baggages can
* be used as the baseline for a slice.
*/
export declare const getMaxBaggagesForOfferSlice: (offerSlice: OfferSlice, type: OfferAvailableServiceBaggageMetadata["type"]) => OfferSliceSegmentPassenger["baggages"];