Type Aliases
Money
declaration
Money = {
amount:number;currency:string; }
A Money object describes a monetary value.
You can use e.g. @screeny05/ts-money to create and manipulate Money objects.
Type declaration
| Name | Type |
|---|---|
|
|
|
|
See
https://martinfowler.com/eaaCatalog/money.html
Example
Money.from(product.price).multiply(quantity) // => Money