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.
25 lines • 635 B
TypeScript
import type { BigSource, Big } from 'big.js';
export type Rates = Record<string, number>;
export interface Options {
/**
* Currency from which you want to convert.
*/
from?: string;
/**
* Currency to which you want to convert.
*/
to?: string;
/**
* Base currency.
*/
base: string;
/**
* Object containing currency rates (for example from an API, such as Open Exchange Rates).
*/
rates: Rates;
/**
* Optional, Big.js constructor - useful to avoid floating point errors.
*/
BigJs?: new (value: BigSource) => Big;
}
//# sourceMappingURL=options.d.ts.map