Skip to content

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 ParameterDescription
TType of the value.
UType of the unit.

Parameters ​

ParameterType
valueT
unitU

Returns ​

Localizable

See ​

Localizable