import { toFormat as coreToFormat } from '@dinero.js/core' ; import type { ToFormatParams } from '@dinero.js/core' ; param dineroObject param transformer returns export function toFormat < TAmount > ( ... [ dineroObject , transformer ] ) { const { calculator } = dineroObject ; const formatter = coreToFormat ( calculator ) ; return formatter ( dineroObject , transformer ) ; }