Function: Currency()
Currency(
options?):PropertyDecorator
Defined in: src/decorators/DecimalDecorator.ts:63
Property decorator defining an ISO 4217 3-character currency code column (e.g. 'USD', 'EUR', 'GBP').
Parameters
| Parameter | Type | Description |
|---|---|---|
options? | CurrencyOptions | Currency configuration options. |
Returns
PropertyDecorator
Example
@Currency({ defaultCurrency: 'USD' })
currency!: string;