@duffel/components
Version:
Component library to build your travel product with Duffel.
9 lines (8 loc) • 320 B
TypeScript
/**
* Return a function to format a number into a money amount for a given currency
*
* @param currency The ISO-4217 currency code to be used by the formatter
*/
export declare const moneyStringFormatter: (currency: string, locale?: string, options?: {
[option: string]: string;
}) => (value: number) => string;