Optionalname: string
Unit name
Optionaloptions: UnitOptions
Unit options
Static ReadonlyCENTIMETER_Static ReadonlyMETER_Protected Static ReadonlyUNIT_Protected Static ReadonlyUNITSStatic ReadonlyUNKNOWNUnit aliases
Alias names as array
Unit name
Name
ProtectedprefixesConvert a value in the current unit to a target unit
Converted unit
Get or create a definition from this unit to the base
Definition to base
ProtectedfindOptionaloptions: UnitOptionsStaticconvertConvert a value from a specific unit to a target unit
Converted unit
StaticfindFind a unit by its name
Unit name
OptionalbaseName: string
Optional base name to specific result
Unit if found
StaticfromStaticregister
Create a new unit