---
title: QuantityUnit
summary: Interface in @sascom/commonjs.
order: 10
languages: [javascript]
sdk-package: JavaScript · @sascom/commonjs
---

# QuantityUnit

[[page:reference/javascript/api|API catalogue]] · `@sascom/commonjs` · Interface

````typescript sdk=js sdk-namespace="@sascom/commonjs"
interface QuantityUnit
````

A unit the quantity parser knows

## Members

| Member | Kind | Description |
|---|---|---|
| [[page:reference/javascript/sascom-commonjs/quantityunit-c8c7d39d#member-bul-d42af2411013|bul]] | Property | The BQL unit token BUL takes ("mm", "ft", "deg"), or null when BUL has none |
| [[page:reference/javascript/sascom-commonjs/quantityunit-c8c7d39d#member-factor-c48874028ee5|factor]] | Property | One of this unit in the canonical unit of its kind (mm, degrees, mm², mm³) |
| [[page:reference/javascript/sascom-commonjs/quantityunit-c8c7d39d#member-kind-6dcc4c633da4|kind]] | Property |  |
| [[page:reference/javascript/sascom-commonjs/quantityunit-c8c7d39d#member-names-0feff4c77e4a|names]] | Property | The symbol and every alias that can be typed |
| [[page:reference/javascript/sascom-commonjs/quantityunit-c8c7d39d#member-symbol-e286264b1772|symbol]] | Property | How the unit is shown: "mm", "m", "ft", "°", "m²" |

## `bul` {#member-bul-d42af2411013}

````typescript sdk=js sdk-namespace="@sascom/commonjs"
readonly bul: string | null
````

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

## `factor` {#member-factor-c48874028ee5}

````typescript sdk=js sdk-namespace="@sascom/commonjs"
readonly factor: number
````

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

## `kind` {#member-kind-6dcc4c633da4}

````typescript sdk=js sdk-namespace="@sascom/commonjs"
readonly kind: QuantityKind
````



## `names` {#member-names-0feff4c77e4a}

````typescript sdk=js sdk-namespace="@sascom/commonjs"
readonly names: readonly (string)[]
````

The symbol and every alias that can be typed

## `symbol` {#member-symbol-e286264b1772}

````typescript sdk=js sdk-namespace="@sascom/commonjs"
readonly symbol: string
````

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