API reference / @localizer/core / UnitValueFormatter
Type Alias: UnitValueFormatter()<T, U>
UnitValueFormatter<
T
,U
> = (value
,unit
) =>Localizable
Defined in: types/formatter.ts:39
Formats a value and its unit into a Localizable
representation.
Type Parameters
Type Parameter | Description |
---|---|
T | Type of the value. |
U | Type of the unit. |
Parameters
Parameter | Type |
---|---|
value | T |
unit | U |