UNPKG
@dinero.js/currencies
Version:
alpha (2.0.0-alpha.15)
latest (2.0.0-alpha.1)
2.0.0-alpha.15
2.0.0-alpha.14
2.0.0-alpha.13
2.0.0-alpha.12
2.0.0-alpha.11
2.0.0-alpha.10
2.0.0-alpha.9
2.0.0-alpha.8
2.0.0-alpha.7
2.0.0-alpha.6
2.0.0-alpha.5
2.0.0-alpha.4
2.0.0-alpha.3
2.0.0-alpha.2
2.0.0-alpha.1
Common currency implementations for Dinero.js
dinerojs.com/currencies
dinerojs/dinero.js
@dinero.js/currencies
/
dist
/
esm
/
types
/
Currency.d.ts
15 lines
(14 loc)
•
300 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export declare type Currency<TAmount> = {
/** * The unique code of the currency. */
readonly
code:
string
;
/** * The base, or radix of the currency. */
readonly
base
: TAmount;
/** * The exponent of the currency. */
readonly
exponent: TAmount; };