@synergy-design-system/components
Version:
9 lines (8 loc) • 464 B
TypeScript
/**
* Formats a number using the Intl.NumberFormat API.
* @param value The value to format
* @param step The step value to use for formatting. Used if no minimumFractionDigits is provided.
* @param numberFormatterOptions Additional parameters to pass to the number formatter.
* @returns The formatted value
*/
export declare const formatNumber: (value: number, step: number | string | undefined, numberFormatterOptions?: Intl.NumberFormatOptions) => string;