Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/inquirer

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/inquirer - npm Package Compare versions

Comparing version 0.0.38 to 0.0.39

12

inquirer/index.d.ts

@@ -8,2 +8,3 @@ // Type definitions for Inquirer.js

// Jason Dreyzehner <https://github.com/bitjson>
// Synarque <https://github.com/synarque>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -94,3 +95,3 @@

*/
default?: any | ((answers: T) => any);
default?: any | ((answers: T) => any) | ((answers: T) => Promise<any>);
/**

@@ -104,3 +105,4 @@ * Choices array or a function returning a choices array. If defined as a function,

| ReadonlyArray<ChoiceType>
| ((answers: T) => ReadonlyArray<ChoiceType>);
| ((answers: T) => ReadonlyArray<ChoiceType>)
| ((answers: T) => Promise<ReadonlyArray<ChoiceType>>);
/**

@@ -110,3 +112,3 @@ * Receive the user input and should return true if the value is valid, and an error message (String)

*/
validate?(input: string, answers?: T): boolean | string;
validate?(input: string, answers?: T): boolean | string | Promise<boolean | string>;
/**

@@ -116,3 +118,3 @@ * Receive the user input and return the filtered value to be used inside the program.

*/
filter?(input: string): string;
filter?(input: string): string | Promise<string>;
/**

@@ -122,3 +124,3 @@ * Receive the current user answers hash and should return true or false depending on whether or

*/
when?: boolean | ((answers: T) => boolean);
when?: boolean | ((answers: T) => boolean) | ((answers: T) => Promise<boolean>);
paginated?: boolean;

@@ -125,0 +127,0 @@ /**

{
"name": "@types/inquirer",
"version": "0.0.38",
"version": "0.0.39",
"description": "TypeScript definitions for Inquirer.js",

@@ -31,2 +31,7 @@ "license": "MIT",

"githubUsername": "bitjson"
},
{
"name": "Synarque",
"url": "https://github.com/synarque",
"githubUsername": "synarque"
}

@@ -44,4 +49,4 @@ ],

},
"typesPublisherContentHash": "a210f4c6fafaabc32080b7b405684786f0f7dc59c573909f7293956ef9063e42",
"typesPublisherContentHash": "84765b84348bfeefa066f716374b6d0b6b245ba118553165152c18efedcdccab",
"typeScriptVersion": "2.0"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Thu, 15 Mar 2018 23:17:55 GMT
* Last updated: Tue, 27 Mar 2018 18:51:52 GMT
* Dependencies: through, rx

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by Qubo <https://github.com/tkQubo>, Parvez <https://github.com/ppathan>, Jouderian <https://github.com/jouderianjr>, Qibang <https://github.com/bang88>, Jason Dreyzehner <https://github.com/bitjson>.
These definitions were written by Qubo <https://github.com/tkQubo>, Parvez <https://github.com/ppathan>, Jouderian <https://github.com/jouderianjr>, Qibang <https://github.com/bang88>, Jason Dreyzehner <https://github.com/bitjson>, Synarque <https://github.com/synarque>.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc