QuantityUnit
Interface in @sascom/commonjs.
API catalogue · @sascom/commonjs · Interface
TypeScript#
interface QuantityUnitA unit the quantity parser knows
Members#
| Member | Kind | Description |
|---|---|---|
| bul | Property | The BQL unit token BUL takes ("mm", "ft", "deg"), or null when BUL has none |
| factor | Property | One of this unit in the canonical unit of its kind (mm, degrees, mm², mm³) |
| kind | Property | |
| names | Property | The symbol and every alias that can be typed |
| symbol | Property | How the unit is shown: "mm", "m", "ft", "°", "m²" |
bul#
TypeScript#
readonly bul: string | nullThe BQL unit token BUL takes ("mm", "ft", "deg"), or null when BUL has none
factor#
TypeScript#
readonly factor: numberOne of this unit in the canonical unit of its kind (mm, degrees, mm², mm³)
kind#
TypeScript#
readonly kind: QuantityKindnames#
TypeScript#
readonly names: readonly (string)[]The symbol and every alias that can be typed
symbol#
TypeScript#
readonly symbol: stringHow the unit is shown: "mm", "m", "ft", "°", "m²"