From f4f30b202a2ee2fd3e21e1b9427bc339e45fe0c9 Mon Sep 17 00:00:00 2001 From: Jim Buck Date: Wed, 19 Oct 2016 09:51:39 -0400 Subject: [PATCH] Fixed Answers definition and minor spelling fixes. (#12082) The typing change for Answers relates to https://github.com/SBoudrias/Inquirer.js/issues/398. --- inquirer/inquirer-tests.ts | 10 +++++----- inquirer/inquirer.d.ts | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/inquirer/inquirer-tests.ts b/inquirer/inquirer-tests.ts index dd770e2367..99fda73d3f 100644 --- a/inquirer/inquirer-tests.ts +++ b/inquirer/inquirer-tests.ts @@ -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" ] }, { diff --git a/inquirer/inquirer.d.ts b/inquirer/inquirer.d.ts index aef3ae8fcc..032740b31c 100644 --- a/inquirer/inquirer.d.ts +++ b/inquirer/inquirer.d.ts @@ -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 {