import { calculator } from '@dinero.js/calculator-number' ; import { createDinero , assert , INVALID_AMOUNT_MESSAGE , INVALID_SCALE_MESSAGE , } from '@dinero.js/core' ; param options . amount param options . currency param options . scale returns export const dinero = createDinero ( { calculator , onCreate ( { amount , scale } ) { assert ( Number . isInteger ( amount ) , INVALID_AMOUNT_MESSAGE ) ; assert ( Number . isInteger ( scale ) , INVALID_SCALE_MESSAGE ) ; } , } ) ;