Skip to content

Commit

Permalink
fix: forbid empty subcommands array in subs cons
Browse files Browse the repository at this point in the history
  • Loading branch information
nktknshn committed Jun 13, 2023
1 parent ce5a8c3 commit 8d97493
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/command/commands/with-subcommands/subs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type SubsReturnType<
export function subs<
TCommandName extends string,
TArgv extends EmptyRecord,
const TCommands extends readonly Command[],
const TCommands extends CommandsTuple,
>(
command: CommandBasic<TCommandName, TArgv>,
subcommands: TCommands,
Expand Down Expand Up @@ -88,7 +88,7 @@ export function subs<
export function subs<
const TCommandDesc extends readonly string[] | string,
TArgv extends EmptyRecord,
const TCommands extends readonly Command[],
const TCommands extends CommandsTuple,
TComposedArgv extends EmptyRecord,
TComposedProps extends ComposedProps,
>(
Expand All @@ -110,7 +110,7 @@ export function subs<
export function subs<
TComposedProps extends ComposedProps,
const TCommandDesc extends readonly string[] | string,
const TCommands extends readonly Command[],
const TCommands extends CommandsTuple,
TComposedArgv extends EmptyRecord,
>(
commandDesc: TCommandDesc,
Expand Down

0 comments on commit 8d97493

Please sign in to comment.