import inquirer from "inquirer"; export interface PrecalcAnswers { precalc: boolean; } export async function precalcQuestion( questionText?: string, ): Promise> { return inquirer.prompt>([ { type: "list", name: "precalc", message: questionText ? questionText : "Will you be precalculating summary metrics for this datasource after import? (Typically yes if reporting sketch % overlap with datasource)", default: "yes", choices: [ { value: true, name: "Yes", }, { value: false, name: "No", }, ], }, ]); }