temporary fix
This commit is contained in:
parent
d7081f9ae5
commit
a98db797f2
@ -46,11 +46,16 @@ export class InteractiveOptions extends Persistent {
|
|||||||
this.options = options
|
this.options = options
|
||||||
.map ((v) => ({ filled: false, ...v } as OptionProcess));
|
.map ((v) => ({ filled: false, ...v } as OptionProcess));
|
||||||
for (const option of this.options) {
|
for (const option of this.options) {
|
||||||
if (typeof option.default !== option.type) {
|
/*
|
||||||
throw new Error (
|
* if (
|
||||||
`default does not match option type on ${option.name}`
|
* 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;
|
this.properties[option.name] = option.type;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user