mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-18 04:24:30 +08:00
[Inquirer] Add missing attributes for Question type
This commit is contained in:
9
types/inquirer/index.d.ts
vendored
9
types/inquirer/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user