import type { Currency } from 'dinero.js' ; export function castToBigintCurrency ( currency ) { return { ... currency , base : BigInt ( currency . base ) , exponent : BigInt ( currency . exponent ) , } ; }