@@ -118,9 +118,9 @@ export type OptionConfig<
118
118
customType ?: OptionCustomType < T > ;
119
119
120
120
/**
121
- * The valid choices for the option (optional) . If provided, the getter
122
- * will validate the value against the choices and, unless otherwise
123
- * specified, will use the choices when prompting.
121
+ * The valid choices for the option. If provided, the getter will validate
122
+ * the value against the choices and, unless otherwise specified, will use
123
+ * the choices when prompting.
124
124
*/
125
125
choices ?: OptionPrimitiveType < T > [ ] ;
126
126
@@ -131,7 +131,7 @@ export type OptionConfig<
131
131
string ?: boolean ;
132
132
133
133
/**
134
- * One or more aliases for the option (optional) .
134
+ * One or more aliases for the option.
135
135
*/
136
136
alias ?: MaybeReadonly < TAlias [ ] > ;
137
137
@@ -142,22 +142,22 @@ export type OptionConfig<
142
142
143
143
/**
144
144
* Whether the option is required. If `true`, the getter will throw an
145
- * error if no value is provided (optional) .
145
+ * error if no value is provided.
146
146
*/
147
147
required ?: boolean ;
148
148
149
149
/**
150
- * Other options that are required for this option to be used (optional) .
150
+ * Other options that are required for this option to be used.
151
151
*/
152
152
requires ?: MaybeReadonly < string [ ] > ;
153
153
154
154
/**
155
- * Other options that are mutually exclusive with this option (optional) .
155
+ * Other options that are mutually exclusive with this option.
156
156
*/
157
157
conflicts ?: MaybeReadonly < string [ ] > ;
158
158
159
159
/**
160
- * The autocomplete function (optional) .
160
+ * The autocomplete function.
161
161
*/
162
162
// TODO: Not implemented yet
163
163
// autoComplete?: (input: string) => MaybePromise<string[]>;
@@ -167,25 +167,25 @@ export type OptionConfig<
167
167
} & (
168
168
| {
169
169
/**
170
- * The number of arguments the option accepts (optional) .
170
+ * The number of arguments the option accepts.
171
171
*/
172
172
nargs ?: undefined ;
173
173
174
174
/**
175
175
* The default value to use. This will be the initial value that the
176
- * getter prompt will show (optional) .
176
+ * getter prompt will show.
177
177
*/
178
178
default ?: OptionPrimitiveType < T > | string ;
179
179
}
180
180
| {
181
181
/**
182
- * The number of arguments the option accepts (optional) .
182
+ * The number of arguments the option accepts.
183
183
*/
184
184
nargs : number ;
185
185
186
186
/**
187
187
* The default value to use. This will be the initial value that the
188
- * getter prompt will show (optional) .
188
+ * getter prompt will show.
189
189
*/
190
190
default ?:
191
191
| ( OptionPrimitiveType < T > extends ( infer T ) [ ]
0 commit comments