dinero.js
Version:
Create, calculate, and format money in JavaScript and TypeScript
17 lines • 421 B
TypeScript
//#region src/currencies/types/DineroCurrency.d.ts
type DineroCurrency<TAmount, TCurrency extends string = string> = {
/**
* The unique code of the currency.
*/
readonly code: TCurrency;
/**
* The base, or radix of the currency.
*/
readonly base: TAmount | readonly TAmount[];
/**
* The exponent of the currency.
*/
readonly exponent: TAmount;
};
//#endregion
export { DineroCurrency as t };