Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface NumericOption<Type>

Type parameters

Hierarchy

Index

Properties

autoComplete?: boolean

If autocomplete is enabled. No-op if choices are specified

default

false

choices?: (number | [name: string, value: number])[]

Possible choices for this option. Note that if choices are specified, no other values will be allowed

Choices are an array of numbers of key-value pairs

example
const option = {
choices: [0],
}
// Is the same as
const option = {
choices: [["0", 0]],
}
// You can speficy a better name
const option = {
choices: [["zero", 0]],
}
defaultValue?: number

Default value of option. No-op if required is true

description: string
max?: number
min?: number
required?: boolean

If option is a required option or not

default

true

type: Type

Generated using TypeDoc