crnc
Version:
currency conversion and functionality for the web
8 lines (7 loc) • 398 B
TypeScript
import { ConvertAndFormatCurrencyParams, Money } from "../interfaces.js";
/**
* Convert and format currency
* + exchange and format money in one shot
* + convenience function combining 'convertCurrency' and 'formatCurrency'
*/
export declare function convertAndFormatCurrency({ value, exchangeRates, inputCurrency, outputCurrency, precision, locale }: ConvertAndFormatCurrencyParams): Money;