From bab7447187d90a0a253f2c325cd626b9269257d0 Mon Sep 17 00:00:00 2001 From: Michael Murphy Date: Fri, 2 Aug 2019 18:46:56 +0100 Subject: [PATCH] fix: `default` should be `T[]` when `multiple: true` (#56) --- src/flags.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flags.ts b/src/flags.ts index 4088431..0d6e328 100644 --- a/src/flags.ts +++ b/src/flags.ts @@ -41,7 +41,7 @@ export type IOptionFlag = IFlagBase & { } export type Definition = { - (options: {multiple: true} & Partial>): IOptionFlag + (options: {multiple: true} & Partial>): IOptionFlag (options: ({required: true} | {default: Default}) & Partial>): IOptionFlag (options?: Partial>): IOptionFlag }