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 (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
quantumkid authored and RasPhilCo committed Aug 2, 2019
1 parent 3111afb commit bab7447
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 @@ -41,7 +41,7 @@ export type IOptionFlag<T> = IFlagBase<T, string> & {
}

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

0 comments on commit bab7447

Please sign in to comment.