UNPKG

@duffel/components

Version:

Component library to build your travel product with Duffel.

13 lines (12 loc) 710 B
import { DuffelAncillariesMarkup, DuffelAncillariesPriceFormatters } from "../types/DuffelAncillariesProps"; /** * Creates price formatters from the markup and priceFormatters passed in. * Throws an error if both are supplied. * If neither are supplied, the priceFormatters will be undefined. * * @param markup The markup to be applied to the prices of the available services of an offer. * @param priceFormatters Price formatters to apply to the prices of the available services of an offer. * @returns */ declare const createPriceFormatters: (markup?: DuffelAncillariesMarkup, priceFormatters?: DuffelAncillariesPriceFormatters) => DuffelAncillariesPriceFormatters; export { createPriceFormatters };