mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-04 09:10:09 +00:00
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:
committed by
Masahiro Wakame
parent
0ad4edb4e8
commit
a8ecb3be1d
2
inquirer/inquirer.d.ts
vendored
2
inquirer/inquirer.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user