Browse documentation

MoneyFormatOptions

Type. Locale and number-format options for formatMoney.

Table of contents

Category

Type

Type import

ts
import type { MoneyFormatOptions } from "valyrian.js/money";

Public signature

ts
type MoneyFormatOptions = { locale?: Intl.LocalesArgument; currency?: string; digits?: number; decimalPlaces?: number; style?: Intl.NumberFormatOptions["style"]; };

Type usage

MoneyFormatOptions configures the locale, currency, digits, decimal places and number-format style accepted by formatMoney.