From 7ff8087540f47e247490ca91736b0cb65555c9d5 Mon Sep 17 00:00:00 2001 From: Michael Murphy Date: Wed, 31 Jul 2019 23:48:51 +0100 Subject: [PATCH] fix: `default` should be `T[]` when `multiple: true` --- src/flags.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flags.ts b/src/flags.ts index 27aeff80..c2fc67f0 100644 --- a/src/flags.ts +++ b/src/flags.ts @@ -27,7 +27,7 @@ export type Output = Parser.flags.Output export type Input = { [P in keyof T]: IFlag } export type Definition = { - (options: {multiple: true} & Partial>): IOptionFlag + (options: {multiple: true} & Partial>): IOptionFlag (options: ({required: true} | {default: Parser.flags.Default}) & Partial>): IOptionFlag (options?: Partial>): IOptionFlag }