Reference·JavaScript · @sascom/commonjsJavaScript

QuantityListOptions

Interface in @sascom/commonjs.

API catalogue · @sascom/commonjs · Interface

TypeScript#
interface QuantityListOptions

Options of parseQuantityList

Inheritance and interfaces#

Members#

Member Kind Description
defaultUnit Property The unit of a number typed without one; default the kind's canonical unit. Show it to the user. inheritedFrom: QuantityOptions.defaultUnit
expressions Property false refuses + - * / and brackets; default true inheritedFrom: QuantityOptions.expressions
kind Property What the text must be; default "length" inheritedFrom: QuantityOptions.kind
labels Property Letters that can lead an item ("x60cm y-20cm" with ["x", "y", "z"])

defaultUnit#

TypeScript#
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#

TypeScript#
expressions?: boolean

false refuses + - * / and brackets; default true

inheritedFrom: QuantityOptions.expressions

kind#

TypeScript#
kind?: QuantityKind

What the text must be; default "length"

inheritedFrom: QuantityOptions.kind

labels#

TypeScript#
labels?: (string)[]

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