From eae985ff7d878cce37a018c2a3bc0e003d5b9918 Mon Sep 17 00:00:00 2001 From: Ariel Barabas <810664+knoid@users.noreply.github.com> Date: Thu, 25 Feb 2021 18:18:49 -0300 Subject: [PATCH] [docs] clarification about prompt method. (#995) --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1d2379b05..ec9f86527 100644 --- a/README.md +++ b/README.md @@ -89,11 +89,12 @@ node packages/inquirer/examples/checkbox.js -#### `inquirer.prompt(questions) -> promise` +#### `inquirer.prompt(questions, answers) -> promise` Launch the prompt interface (inquiry session) - **questions** (Array) containing [Question Object](#question) (using the [reactive interface](#reactive-interface), you can also pass a `Rx.Observable` instance) +- **answers** (object) contains values of already answered questions. Inquirer will avoid asking answers already provided here. Defaults `{}`. - returns a **Promise** #### `inquirer.registerPrompt(name, prompt)`