/** * Resolved format description with the predefined name and d3-format specifier */ export interface FormatDescription { /** Predefined format name (e.g., 'percent_2', 'currency_1') or a base name like 'number', or 'custom' for ad-hoc specifiers */ name: string; /** d3-format specifier string (e.g., '.2f', ',.0f', '$,.2f'). See https://d3js.org/d3-format */ specifier: string; /** ISO 4217 currency code in uppercase (e.g. USD, EUR). Present when a currency format is used. */ currency?: string; }