API / Utilities / FormatUnitScaleEntry

FormatUnitScaleEntry: object

Defined in: src/libs/format-number/types.ts:26

Single entry of a custom unit scale.

Type declaration

Name Type Description
factor number Positive multiplier applied to the value. The entry wins when `
postfix FormatI18nString String appended after the scaled value (e.g. 'KB'). Use an empty string to suppress the suffix and the delimiter. Pass a {lang: string} dictionary to localize the postfix — resolution falls back to en, then to empty.