Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix: default should be T[] when multiple: true (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
quantumkid authored and RasPhilCo committed Sep 5, 2019
1 parent deb111a commit 13da51c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type Output = Parser.flags.Output
export type Input<T extends Parser.flags.Output> = { [P in keyof T]: IFlag<T[P]> }

export type Definition<T> = {
(options: {multiple: true} & Partial<IOptionFlag<T>>): IOptionFlag<T[]>
(options: {multiple: true} & Partial<IOptionFlag<T[]>>): IOptionFlag<T[]>
(options: ({required: true} | {default: Parser.flags.Default<T>}) & Partial<IOptionFlag<T>>): IOptionFlag<T>
(options?: Partial<IOptionFlag<T>>): IOptionFlag<T | undefined>
}
Expand Down

0 comments on commit 13da51c

Please sign in to comment.