Skip to content

Commit

Permalink
fix: allow any args type for SubCommandsDef
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Mar 28, 2023
1 parent b7b42be commit 60d218d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export interface CommandMeta {

// Command: Definition

export type SubCommandsDef = Record<string, Resolvable<CommandDef>>;
export type SubCommandsDef = Record<string, Resolvable<CommandDef<any>>>;

export type CommandDef<T extends ArgsDef = ArgsDef> = {
meta?: Resolvable<CommandMeta>;
Expand Down

0 comments on commit 60d218d

Please sign in to comment.