Create a new unit
Optionalname: string
Unit name
Optionaloptions: UnitOptions
Unit options
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
ProtectedfindStaticconvertConvert 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
Unit
Usage
Creation
Specifiers
You can specify the prefix using the
specifier(...)function.