Skip to content

Commit

Permalink
fix: positional variadic type
Browse files Browse the repository at this point in the history
  • Loading branch information
mdbetancourt committed Dec 7, 2021
1 parent 649ca4a commit 0727e81
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,7 @@ export class Command {
}

positionals<T extends [ZodTypeAny, ...ZodTypeAny[]]>(value: T): PositionalArguments<T>;
positionals<T extends ZodTypeAny>(
value: T,
min?: number,
max?: number
): Argument<Infer<T>>[];
positionals<T extends ZodTypeAny>(value: T, min?: number, max?: number): Argument<T>[];
positionals(
args: ZodTypeAny | [ZodTypeAny, ...ZodTypeAny[]],
min = 0,
Expand Down

0 comments on commit 0727e81

Please sign in to comment.