import { convert as coreConvert } from '@dinero.js/core' ; import type { ConvertParams } from '@dinero.js/core' ; param dineroObject param newCurrency param rates returns export function convert < TAmount > ( ... [ dineroObject , newCurrency , rates ] ) { const { calculator } = dineroObject ; const converter = coreConvert ( calculator ) ; return converter ( dineroObject , newCurrency , rates ) ; }