import { isNegative as coreIsNegative } from '@dinero.js/core' ; import type { IsNegativeParams } from '@dinero.js/core' ; param dineroObject returns export function isNegative < TAmount > ( ... [ dineroObject ] ) { const { calculator } = dineroObject ; const isNegativeFn = coreIsNegative ( calculator ) ; return isNegativeFn ( dineroObject ) ; }