Added Promise syntax to PrompModule in Inquirer.js (#15528)

`prompt(questions: Questions): Promise<Answers>;` was missing from the PromptModule type.
This commit is contained in:
Max Cantor
2017-04-17 08:12:54 -07:00
committed by Andy
parent 7a1e43af99
commit bc99ccf011
+1
View File
@@ -41,6 +41,7 @@ declare namespace inquirer {
}
interface PromptModule {
(questions: Questions): Promise<Answers>;
(questions: Questions, cb: (answers: Answers) => any): ui.Prompt;
/**
* Register a prompt type