diff --git a/src/classes/CommandOption.ts b/src/classes/CommandOption.ts index c8a3468..efba9fd 100644 --- a/src/classes/CommandOption.ts +++ b/src/classes/CommandOption.ts @@ -57,7 +57,7 @@ class CommandOption implements ICommandOption { this.choices = def.choices || []; this.strict = def.strict || false; - this.type = def.type || OptionType.STRING; + this.type = def.type ?? OptionType.STRING; this.flag = def.flag || false; this.valueOptional = def.valueOptional || false;