Skip to content

knownUnits

const knownUnits: ReadonlySet<string>;

Defined in: packages/engine/src/lexer/units.ts:178

Set of all known unit identifiers (case-sensitive).

Base units come from the conversion table; the extended units (speed, voltage, parts-per and the other categories the base table has no measure for) come from ExtendedUnits.ts; currencies and workdays are listed above.

Note ExtendedUnits deliberately omits bare V (collides with the stocks package’s Visa ticker), bare var (reads as a variable name) and fps (the Time package needs it for frames per second, so speed uses ft_s). Those exclusions live there rather than here because they are properties of that table.