yeoman-generator
Version:
Rails-inspired generator system that provides scaffolding for your apps
20 lines (19 loc) • 869 B
TypeScript
import type { PromptAnswers, PromptQuestion } from '../questions.js';
import type Storage from './storage.js';
/**
* Prefill the defaults with values from the global store
*
* @param store `.yo-rc-global` global config
* @param questions Original prompt questions
* @return Prompt questions array with prefilled values.
*/
export declare const prefillQuestions: <A extends import("inquirer").Answers = import("inquirer").Answers>(store: Storage, questions: PromptQuestion<A>[]) => PromptQuestion<A>[];
/**
* Store the answers in the global store
*
* @param store `.yo-rc-global` global config
* @param questions Original prompt questions
* @param answers The inquirer answers
* @param storeAll Should store default values
*/
export declare const storeAnswers: (store: Storage, questions: any, answers: PromptAnswers, storeAll: boolean) => void;