import { safeMaximum } from '@dinero.js/core' ; import type { MaximumParams } from '@dinero.js/core' ; param dineroObjects returns export function maximum < TAmount > ( ... [ dineroObjects ] ) { const { calculator } = dineroObjects [ 0 ] ; const maximumFn = safeMaximum ( calculator ) ; return maximumFn ( dineroObjects ) ; }