diff --git a/src/command/commands/with-subcommands/subs.ts b/src/command/commands/with-subcommands/subs.ts index 39c074c..ac344c6 100644 --- a/src/command/commands/with-subcommands/subs.ts +++ b/src/command/commands/with-subcommands/subs.ts @@ -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, subcommands: TCommands, @@ -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, >( @@ -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,