lanka-validations - v2.1.0
    Preparing search index...

    Interface LkrDecimalOptions

    interface LkrDecimalOptions {
        allowNegative?: boolean;
        excessDecimals?: ExcessDecimalPolicy;
        maxMinorUnits?: bigint;
    }
    Index
    allowNegative?: boolean

    Reject negative amounts unless explicitly enabled.

    excessDecimals?: ExcessDecimalPolicy

    Behavior when more than two decimal places are supplied. Defaults to reject.

    maxMinorUnits?: bigint

    Maximum absolute amount in cents. Defaults to Number.MAX_SAFE_INTEGER cents.