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

Commit 13da51c

Browse files
quantumkidRasPhilCo
authored andcommitted
fix: default should be T[] when multiple: true (#70)
1 parent deb111a commit 13da51c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export type Output = Parser.flags.Output
2727
export type Input<T extends Parser.flags.Output> = { [P in keyof T]: IFlag<T[P]> }
2828

2929
export type Definition<T> = {
30-
(options: {multiple: true} & Partial<IOptionFlag<T>>): IOptionFlag<T[]>
30+
(options: {multiple: true} & Partial<IOptionFlag<T[]>>): IOptionFlag<T[]>
3131
(options: ({required: true} | {default: Parser.flags.Default<T>}) & Partial<IOptionFlag<T>>): IOptionFlag<T>
3232
(options?: Partial<IOptionFlag<T>>): IOptionFlag<T | undefined>
3333
}

0 commit comments

Comments
 (0)