import { safeGreaterThan } from '@dinero.js/core' ; import type { GreaterThanParams } from '@dinero.js/core' ; param dineroObject param comparator returns export function greaterThan < TAmount > ( ... [ dineroObject , comparator ] ) { const { calculator } = dineroObject ; const greaterThanFn = safeGreaterThan ( calculator ) ; return greaterThanFn ( dineroObject , comparator ) ; }