@duffel/components
Version:
Component library to build your travel product with Duffel.
12 lines (11 loc) • 440 B
TypeScript
import { Offer } from "@duffel/api/types";
/**
*
* Returns the currency of the first service of the given type in the offer.
*
* @param offer An offer
* @returns A string representing the currency of the services in the offer.
* @throws If there are no services, or none of the services are of the given type.
*/
declare const getCurrencyForServices: (offer: Offer, serviceType: string) => string;
export { getCurrencyForServices };