import { safeAllocate } from '@dinero.js/core' ; import type { AllocateParams } from '@dinero.js/core' ; param dineroObject param ratios returns export function allocate < TAmount > ( ... [ dineroObject , ratios ] ) { const { calculator } = dineroObject ; const allocateFn = safeAllocate ( calculator ) ; return allocateFn ( dineroObject , ratios ) ; }