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

NameType

amount

number

currency

string

See

https://martinfowler.com/eaaCatalog/money.html

Example

Money.from(product.price).multiply(quantity) // => Money