UnitFormatOptionsinterface
{
readonly one?: string | undefined;
readonly many?: string | undefined;
readonly abbr?: string | undefined;
}| Property | Type | |
|---|---|---|
.one | string | String for one of this thing, e.g. product or item or sheep- Used for unitDisplay: "long" formatting.- Defaults to unit reference, e.g. "minute" readonly |
.many | string | String for several of this thing, e.g. products or items or sheep- Used for unitDisplay: "long" formatting.- Defaults to one + "s" readonly |
.abbr | string | Abbreviation for this thing, e.g. products or items or sheep (defaults to one + "s").- Used for unitDisplay: "narrow" formatting.- Defaults to unit reference, e.g. "minute" readonly |
Options for quantity formatting.