mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
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:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user