We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When providing a filter callback function for prompts with type list, we expect 2 arguments:
filter
list
Only user's input argument is provided, the answers hash is not defined.
user's input
answers hash
inquirer .prompt([ { type: 'list', name: 'q1', message: 'message', choices: ['foo', 'bar'], filter: (userInput, answers) => { // `answers` is unexpectedly undefined return userInput; } }, ]) .then((answers) => { console.log(JSON.stringify(answers, null, ' ')); });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected
When providing a
filter
callback function for prompts with typelist
, we expect 2 arguments:Actual
Only
user's input
argument is provided, theanswers hash
is not defined.Minimum reproduction
The text was updated successfully, but these errors were encountered: