( ...[dineroObject, transformer]: ToDecimalParams<TAmount, TOutput, TCurrency> )
| 21 | * @public |
| 22 | */ |
| 23 | export function toDecimal<TAmount, TOutput, TCurrency extends string>( |
| 24 | ...[dineroObject, transformer]: ToDecimalParams<TAmount, TOutput, TCurrency> |
| 25 | ) { |
| 26 | const { calculator } = dineroObject; |
| 27 | const toDecimalFn = coreToDecimal<TAmount, TOutput>(calculator); |
| 28 | |
| 29 | return toDecimalFn(dineroObject, transformer); |
| 30 | } |
no outgoing calls
no test coverage detected