Reference·JavaScript · @sascom/commonjsJavaScript

QuantityUnit

Interface in @sascom/commonjs.

API catalogue · @sascom/commonjs · Interface

TypeScript#
interface QuantityUnit

A 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 | null

The BQL unit token BUL takes ("mm", "ft", "deg"), or null when BUL has none

factor#

TypeScript#
readonly factor: number

One of this unit in the canonical unit of its kind (mm, degrees, mm², mm³)

kind#

TypeScript#
readonly kind: QuantityKind

names#

TypeScript#
readonly names: readonly (string)[]

The symbol and every alias that can be typed

symbol#

TypeScript#
readonly symbol: string

How the unit is shown: "mm", "m", "ft", "°", "m²"