Collect common unit constants under a U namespace.
Using a namespace allows precise typescript typing, while keeping the namespace
distinct from the start. Otherwise, import * from './unit-defs' would
be dangerous as types are added.
This is a better alternative to prefixing all the names with U_.
Collect common unit constants under a U namespace. Using a namespace allows precise typescript typing, while keeping the namespace distinct from the start. Otherwise, import * from './unit-defs' would be dangerous as types are added.
This is a better alternative to prefixing all the names with U_.