Skip to content

NumberOption

Represents a number option.

Type parameters

Type parameterValue
T extends number | nullnull

Constructors

new NumberOption()

1
new NumberOption<T>(options?: OptionOptions<T>): NumberOption<T>

Creates a new instance of the number option.

Parameters

ParameterTypeDescription
options?OptionOptions<T>The options of the number option.

Returns

NumberOption<T>

Source

twitchfy/packages/chatbot/src/structures/NumberOption.ts:21

Properties

PropertyModifierTypeDefault valueDescription
defaultValuereadonlynull | TundefinedThe default value of the option.
typereadonly"number"'number'The type of the option. It’s always number.