@easymoney/currencies
Version:
Best way to do money in js
16 lines • 535 B
TypeScript
import { Currency, CurrencyUnitISO, CurrencyUnit } from "@easymoney/core";
export declare type CurrencyUnitCrypto = CurrencyUnit & {
symbol: string;
} & {
[key: string]: any;
};
export interface CurrencyList<C> {
contains: (currency: Currency) => boolean;
getCurrencies(): CurrencyMap<C>;
subUnitFor(currency: Currency): number;
}
export declare type CurrencyListISO = CurrencyList<CurrencyUnitISO>;
export declare type CurrencyMap<C> = {
[code: string]: C;
};
//# sourceMappingURL=types.d.ts.map