inquirer - make sure methods don't conflict (#12247)

* add prompt() override returning promise

according to [docs](https://www.npmjs.com/package/inquirer#inquirerpromptquestions---promise)

* made sure there won't be conflicts

* Revert "made sure there won't be conflicts"

This reverts commit 0281989a3826e2b57fcd4e355d899ebd11604153.

* Revert "add prompt() override returning promise"

This reverts commit b5094ce38d78fc40c59653926711de2b297105cf.

* resolve method conflicts
This commit is contained in:
Dmitry A. Efimenko
2016-11-01 05:41:02 -07:00
committed by Masahiro Wakame
parent 0ad4edb4e8
commit a8ecb3be1d

View File

@@ -32,7 +32,7 @@ declare module "inquirer" {
* @param cb Callback being passed the user answers
* @return
*/
prompt(questions: Questions, cb?: (answers: Answers) => any): ui.Prompt;
prompt(questions: Questions, cb: (answers: Answers) => any): ui.Prompt;
prompt(questions: Questions): Promise<Answers>;
prompts: Prompts;
Separator: objects.SeparatorStatic;