Millwork
    Preparing search index...

    Interface DineroOptions

    Options of the dinero codec.

    interface DineroOptions {
        bigint?: boolean;
        currencies?: Readonly<Record<string, Currency>>;
        currency?: string;
        wire?: MoneyWire;
    }
    Index
    bigint?: boolean

    Make every amount a bigint. Without it, only an amount that is not a safe integer is a bigint.

    currencies?: Readonly<Record<string, Currency>>

    More currencies, keyed by code. They replace the dinero.js currency of the same code.

    currency?: string

    The currency code for the 'amount' wire, which has a bare amount in minor units.

    wire?: MoneyWire

    The wire form. The default is 'minor': { amount: 1999, currency: 'USD' }.