From 255f7d95a1c208adba54e9eb63c55ff15c17d065 Mon Sep 17 00:00:00 2001 From: Michael Murphy Date: Wed, 31 Jul 2019 23:03:08 +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 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 }