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

# QuantityListOptions

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

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

Options of [[page:reference/javascript/sascom-commonjs/parsequantitylist-857ca74a|parseQuantityList]]

## Inheritance and interfaces

- [[page:reference/javascript/sascom-commonjs/quantityoptions-93bc2566|QuantityOptions]]

## Members

| Member | Kind | Description |
|---|---|---|
| [[page:reference/javascript/sascom-commonjs/quantitylistoptions-980e7a96#member-defaultunit-a4b54060bcf9|defaultUnit]] | Property | The unit of a number typed without one; default the kind's canonical unit. Show it to the user. inheritedFrom: QuantityOptions.defaultUnit |
| [[page:reference/javascript/sascom-commonjs/quantitylistoptions-980e7a96#member-expressions-d468edbc866c|expressions]] | Property | false refuses + - * / and brackets; default true inheritedFrom: QuantityOptions.expressions |
| [[page:reference/javascript/sascom-commonjs/quantitylistoptions-980e7a96#member-kind-1cf5e3e6b23c|kind]] | Property | What the text must be; default "length" inheritedFrom: QuantityOptions.kind |
| [[page:reference/javascript/sascom-commonjs/quantitylistoptions-980e7a96#member-labels-aa7656c315aa|labels]] | Property | Letters that can lead an item ("x60cm y-20cm" with ["x", "y", "z"]) |

## `defaultUnit` {#member-defaultunit-a4b54060bcf9}

````typescript sdk=js sdk-namespace="@sascom/commonjs"
defaultUnit?: string
````

The unit of a number typed without one; default the kind's canonical unit. Show it to the user.

inheritedFrom: QuantityOptions.defaultUnit

## `expressions` {#member-expressions-d468edbc866c}

````typescript sdk=js sdk-namespace="@sascom/commonjs"
expressions?: boolean
````

false refuses + - * / and brackets; default true

inheritedFrom: QuantityOptions.expressions

## `kind` {#member-kind-1cf5e3e6b23c}

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

What the text must be; default "length"

inheritedFrom: QuantityOptions.kind

## `labels` {#member-labels-aa7656c315aa}

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

Letters that can lead an item ("x60cm y-20cm" with ["x", "y", "z"])
