remove usage of @ts-ignore

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-01-18 11:19:01 +01:00
parent 593de33361
commit 59a9309536
13 changed files with 45 additions and 83 deletions
+3 -5
View File
@@ -16,7 +16,7 @@
import chalk from 'chalk';
import { Command } from 'commander';
import inquirer, { Answers, Question } from 'inquirer';
import inquirer, { Answers } from 'inquirer';
import { resolve as resolvePath } from 'path';
import { findPaths } from '@backstage/cli-common';
import os from 'os';
@@ -34,7 +34,7 @@ export default async (cmd: Command, version: string): Promise<void> => {
/* eslint-disable-next-line no-restricted-syntax */
const paths = findPaths(__dirname);
const questions: Question[] = [
const answers: Answers = await inquirer.prompt([
{
type: 'input',
name: 'name',
@@ -54,11 +54,9 @@ export default async (cmd: Command, version: string): Promise<void> => {
type: 'list',
name: 'dbType',
message: chalk.blue('Select database for the backend [required]'),
// @ts-ignore
choices: ['SQLite', 'PostgreSQL'],
},
];
const answers: Answers = await inquirer.prompt(questions);
]);
answers.dbTypePG = answers.dbType === 'PostgreSQL';
answers.dbTypeSqlite = answers.dbType === 'SQLite';