From a98db797f2b50dd790d3a1354c95071f86be1d3a Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Tue, 5 May 2020 15:25:39 +0200 Subject: [PATCH] temporary fix --- lib/InteractiveOptions.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/InteractiveOptions.ts b/lib/InteractiveOptions.ts index 41e343d..480343d 100644 --- a/lib/InteractiveOptions.ts +++ b/lib/InteractiveOptions.ts @@ -46,11 +46,16 @@ export class InteractiveOptions extends Persistent { this.options = options .map ((v) => ({ filled: false, ...v } as OptionProcess)); for (const option of this.options) { - if (typeof option.default !== option.type) { - throw new Error ( - `default does not match option type on ${option.name}` - ); - } + /* + * if ( + * typeof option.default !== 'undefined' + * //TODO stringtype typeof option.default !== option.type + * ) { + * throw new Error ( + * `default does not match option type on ${option.name}` + * ); + * } + */ this.properties[option.name] = option.type; } }