Reference·JavaScript · @sascom/commonjsJavaScript

QuantityOptions

Interface in @sascom/commonjs.

API catalogue · @sascom/commonjs · Interface

TypeScript#
interface QuantityOptions

Options of parseQuantity

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.
expressions Property false refuses + - * / and brackets; default true
kind Property What the text must be; default "length"

defaultUnit#

TypeScript#
defaultUnit?: string

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

expressions#

TypeScript#
expressions?: boolean

false refuses + - * / and brackets; default true

kind#

TypeScript#
kind?: QuantityKind

What the text must be; default "length"