[Inquirer] Add missing attributes for Question type

This commit is contained in:
Jouderian Nobre
2017-11-30 01:18:07 -03:00
parent 9dee7ddc7d
commit 0c412f7749
2 changed files with 13 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
// Project: https://github.com/SBoudrias/Inquirer.js
// Definitions by: Qubo <https://github.com/tkQubo>
// Parvez <https://github.com/ppathan>
// Jouderian <https://github.com/jouderianjr>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="rx" />
@@ -115,6 +116,14 @@ declare namespace inquirer {
* Add a mask when password will entered
*/
mask?: string;
/**
* Change the default prefix message.
*/
prefix?: string;
/**
* Change the default suffix message.
*/
suffix?: string;
}
/**

View File

@@ -151,13 +151,15 @@ var questions = [
{
type: "input",
name: "first_name",
message: "What's your first name"
message: "What's your first name",
prefix: "1 - ",
},
{
type: "input",
name: "last_name",
message: "What's your last name",
default: function () { return "Doe"; }
default: function () { return "Doe"; },
suffix: "!!"
},
{
type: "input",