import { Question } from 'inquirer'; export interface ExtendedQuestion extends Question { choices?: string[]; transformer?: (text: string, answers: Record, flags: Record) => string; } export interface ExtendedQuestionMap { [key: string]: ExtendedQuestion; }