From bc99ccf01120c7b9329713aae64175d2dd0c0ff7 Mon Sep 17 00:00:00 2001 From: Max Cantor Date: Mon, 17 Apr 2017 08:12:55 -0700 Subject: [PATCH] Added Promise syntax to PrompModule in Inquirer.js (#15528) `prompt(questions: Questions): Promise;` was missing from the PromptModule type. --- types/inquirer/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/inquirer/index.d.ts b/types/inquirer/index.d.ts index 618da5593d..1909781f88 100644 --- a/types/inquirer/index.d.ts +++ b/types/inquirer/index.d.ts @@ -41,6 +41,7 @@ declare namespace inquirer { } interface PromptModule { + (questions: Questions): Promise; (questions: Questions, cb: (answers: Answers) => any): ui.Prompt; /** * Register a prompt type