mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
fix(inquirer): add missing transformer function
This commit is contained in:
Vendored
+6
@@ -112,6 +112,12 @@ declare namespace inquirer {
|
||||
* The value returned will be added to the Answers hash.
|
||||
*/
|
||||
filter?(input: string): string | Promise<string>;
|
||||
/**
|
||||
* Receive the user input and return the transformed value to be displayed to the user. The
|
||||
* transformation only impacts what is shown while editing. It does not impact the answers
|
||||
* hash.
|
||||
*/
|
||||
transformer?(input: string): string;
|
||||
/**
|
||||
* Receive the current user answers hash and should return true or false depending on whether or
|
||||
* not this question should be asked. The value can also be a simple boolean.
|
||||
|
||||
Reference in New Issue
Block a user