QuantityOptions
Interface in @sascom/commonjs.
API catalogue · @sascom/commonjs · Interface
TypeScript#
interface QuantityOptionsOptions 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?: stringThe unit of a number typed without one; default the kind's canonical unit. Show it to the user.
expressions#
TypeScript#
expressions?: booleanfalse refuses + - * / and brackets; default true
kind#
TypeScript#
kind?: QuantityKindWhat the text must be; default "length"