Skip to content

Commit 2acd41b

Browse files
committed
Remove F type parameter
those were the days...
1 parent 82902c0 commit 2acd41b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

backend/src/plugin/core/public/command.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,11 @@ interface DurationOption extends BaseOption {
183183
type: OptionType.Duration;
184184
}
185185

186-
type OptionValue<F extends Option> = F["array"] extends true
187-
? ArrayValue<OptionTypeValue<F["type"]>, F["required"]>
188-
: F["required"] extends true
189-
? NullableValue<OptionTypeValue<F["type"]>, F["required"]>
190-
: OptionTypeValue<F["type"]> | null;
186+
type OptionValue<TOpt extends Option> = TOpt["array"] extends true
187+
? ArrayValue<OptionTypeValue<TOpt["type"]>, TOpt["required"]>
188+
: TOpt["required"] extends true
189+
? NullableValue<OptionTypeValue<TOpt["type"]>, TOpt["required"]>
190+
: OptionTypeValue<TOpt["type"]> | null;
191191

192192
type ArrayValue<
193193
TOpt,

0 commit comments

Comments
 (0)