fix: optional T

This commit is contained in:
bang
2018-03-28 16:48:29 +08:00
parent b27c13d93a
commit 6fcf793f2a
+1 -1
View File
@@ -17,7 +17,7 @@ import through = require('through');
declare namespace inquirer {
type Prompts = { [name: string]: PromptModule };
type ChoiceType = string | objects.ChoiceOption | objects.Separator;
type Questions<T> =
type Questions<T = Answers> =
| Question<T>
| ReadonlyArray<Question<T>>
| Rx.Observable<Question<T>>;