Callback method does not work after 0.12.0 #452

Closed
shesmu opened this Issue Nov 14, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@shesmu

shesmu commented Nov 14, 2016

Not sure if this was intentional but
inquirer.prompt([ { type : "list", name : "foo", message : "Result", choices : choices, } ], function(answer) { console.log(answer); });
no longer works post 0.12.0, the callback function is never called.

@SBoudrias

This comment has been minimized.

Show comment
Hide comment
@SBoudrias

SBoudrias Nov 14, 2016

Owner

This is intentional. It now returns a promise.

Owner

SBoudrias commented Nov 14, 2016

This is intentional. It now returns a promise.

@SBoudrias SBoudrias closed this Nov 14, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment