UNPKG

@duffel/components

Version:

Component library to build your travel product with Duffel.

5 lines (4 loc) 346 B
/// <reference types="@duffel/api" /> import { OfferAvailableService } from "@duffel/api/types"; export type ServicePriceMapById = Record<OfferAvailableService["id"], Pick<OfferAvailableService, "total_amount" | "total_currency">>; export declare const getServicePriceMapById: (availableServices: OfferAvailableService[]) => ServicePriceMapById;