import { haveSameAmount as coreHaveSameAmount } from '@dinero.js/core' ; import type { HaveSameAmountParams } from '@dinero.js/core' ; param dineroObjects returns export function haveSameAmount < TAmount > ( ... [ dineroObjects ] ) { const { calculator } = dineroObjects [ 0 ] ; const haveSameAmountFn = coreHaveSameAmount ( calculator ) ; return haveSameAmountFn ( dineroObjects ) ; }