Merge pull request #24584 from bang88/fix-optional-type

fix(Inquirer): optional T
This commit is contained in:
Paul van Brenk
2018-04-03 13:19:19 -07:00
committed by GitHub
+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>>;