GT2/GT2-iOS/node_modules/react-native/local-cli/link/pollParams.js

10 lines
209 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
var inquirer = require('inquirer');
module.exports = (questions) => new Promise((resolve, reject) => {
if (!questions) {
return resolve({});
}
inquirer.prompt(questions).then(resolve, reject);
});