Fixed Answers definition and minor spelling fixes. (#12082)

The typing change for Answers relates to https://github.com/SBoudrias/Inquirer.js/issues/398.
This commit is contained in:
Jim Buck
2016-10-19 22:51:39 +09:00
committed by Masahiro Wakame
parent 39b215bda1
commit f4f30b202a
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -58,7 +58,7 @@ inquirer.prompt([
choices: [
new inquirer.Separator("The usual:"),
{
name: "Peperonni"
name: "Pepperoni"
},
{
name: "Cheese",
@@ -203,7 +203,7 @@ inquirer.prompt([
"Make a reservation",
new inquirer.Separator(),
"Ask opening hours",
"Talk to the receptionnist"
"Talk to the receptionist"
]
},
{
@@ -357,8 +357,8 @@ var questions2 = [
choices: [
{
key: "p",
name: "Peperonni and chesse",
value: "PeperonniChesse"
name: "Pepperoni and cheese",
value: "PepperoniCheese"
},
{
key: "a",
@@ -421,7 +421,7 @@ inquirer.prompt([
"Make a reservation",
new inquirer.Separator(),
"Ask opening hours",
"Talk to the receptionnist"
"Talk to the receptionist"
]
},
{
+1 -1
View File
@@ -112,7 +112,7 @@ declare module "inquirer" {
* A key/value hash containing the client answers in each prompt.
*/
interface Answers {
[key: string]: string|boolean;
[key: string]: any;
}
namespace ui {