Skip to content

StringOption

Represents a string option.

Type parameters

Type parameterValue
T extends string | nullnull

Constructors

new StringOption()

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

Creates a new instance of the string option.

Parameters

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

Returns

StringOption<T>

Source

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

Properties

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