ropods-cashify
Version:
Modern, lightweight currency conversion library with real-time exchange rates, INR support, and free API integration. Production-ready TypeScript library for RoPods organization with zero dependencies and comprehensive testing.
11 lines • 503 B
TypeScript
import { Rates } from './options.js';
/**
* Get the conversion rate.
* @param base Base currency.
* @param rates Object containing currency rates (for example from an API, such as Open Exchange Rates).
* @param from Currency from which you want to convert.
* @param to Currency to which you want to convert.
* @return Conversion result.
*/
export default function getRate(base: string, rates: Rates, from: string | undefined, to: string | undefined): number;
//# sourceMappingURL=get-rate.d.ts.map