Just use any instead of explicit types

Inquirer also supports some other stuff like separator objects as choices.
It gets too complicated to properly type it because its unclear what other
stuff can be used as choices so I just use `any` now.
This commit is contained in:
Klaus Reimer
2015-12-18 17:05:26 +01:00
parent 33e3ab99b0
commit 2321f2da77
+1 -1
View File
@@ -84,7 +84,7 @@ declare module yo {
type?: string;
name: string;
message: string | ((answers: Object) => string);
choices?: string[] | IChoice[] | ((answers: Object) => (string[] | IChoice[]));
choices?: any[] | ((answers: Object) => any);
default?: string | number | string[] | number[] | ((answers: Object) => (string | number | string[] | number[]));
validate?: ((input: any) => boolean | string);
filter?: ((input: any) => any);