fix(inquirer): add missing transformer function

This commit is contained in:
Justin Rockwood
2018-03-19 20:00:59 -07:00
parent b3888abd05
commit bacb3f54af
+6
View File
@@ -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.