Skip to content

Commit

Permalink
fix: peek options type type
Browse files Browse the repository at this point in the history
  • Loading branch information
samfundev committed Aug 1, 2024
1 parent e4713bc commit ef5ad75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/parsers/Args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export interface RepeatArgsOptions extends ArgsOptions {

export interface PeekArgsOptions<T = unknown, K extends keyof ArgType = keyof ArgType> extends Omit<ArgsOptions, 'type'> {
name: string;
type: () => Awaitable<Argument.Result<T>> | K;
type: (() => Awaitable<Argument.Result<T>>) | K;
}

export type InferArgReturnType<T extends ArgsOptions | PeekArgsOptions> = T extends ArgsOptions
Expand Down

0 comments on commit ef5ad75

Please sign in to comment.