- Preparing search index...
- The search index is not available
@half0wl/money
Class AbstractMoney<T>Abstract
Constructors
constructor
- new AbstractMoney<T>(currency: T, amount: number): AbstractMoney<T>
-
Type Parameters
-
T extends string = string
Parameters
-
currency: T
-
amount: number
Properties
Private
Readonly
amount
amount: number
Private
Readonly
currency
currency: T
Methods
getAmount
- getAmount(): number
-
Returns number
getCurrency
- getCurrency(): T
-
Returns T
Returns
The amount value.