import { equal as coreEqual } from '@dinero.js/core' ; import type { EqualParams } from '@dinero.js/core' ; param dineroObject param comparator returns export function equal < TAmount > ( ... [ dineroObject , comparator ] ) { const { calculator } = dineroObject ; const equalFn = coreEqual ( calculator ) ; return equalFn ( dineroObject , comparator ) ; }