⬆️ Set inquirer@7.0.0 on node-dev

This commit is contained in:
Jan Oberhauser
2019-08-28 11:11:24 +02:00
parent cd75c63f83
commit 88e70e9f91
2 changed files with 6 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ export class New extends Command {
this.log('=========================');
// Ask for the type of not to be created
const typeQuestion: inquirer.Question = {
const typeQuestion: inquirer.QuestionCollection = {
name: 'type',
type: 'list',
default: 'Node',
@@ -49,7 +49,7 @@ export class New extends Command {
getDescription = true;
const nodeTypeQuestion: inquirer.Question = {
const nodeTypeQuestion: inquirer.QuestionCollection = {
name: 'nodeType',
type: 'list',
default: 'Execute',
@@ -101,7 +101,7 @@ export class New extends Command {
});
}
const additionalAnswers = await inquirer.prompt(additionalQuestions as inquirer.Questions);
const additionalAnswers = await inquirer.prompt(additionalQuestions as inquirer.QuestionCollection);
const nodeName = additionalAnswers.name;
@@ -117,7 +117,7 @@ export class New extends Command {
await fsAccess(destinationFilePath);
// File does already exist. So ask if it should be overwritten.
const overwriteQuestion: inquirer.Questions = [
const overwriteQuestion: inquirer.QuestionCollection = [
{
name: 'overwrite',
type: 'confirm',