1 | import type { PromptAnswers, PromptQuestion as PromptQuestionApi } from '@yeoman/types';
|
2 | import type Storage from './util/storage.js';
|
3 |
|
4 | export type { PromptAnswers } from '@yeoman/types';
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | export type PromptQuestion<T extends PromptAnswers = PromptAnswers> = PromptQuestionApi<T> & {
|
10 | name: string;
|
11 |
|
12 | |
13 |
|
14 |
|
15 | storage?: Storage;
|
16 |
|
17 | |
18 |
|
19 |
|
20 | store?: boolean;
|
21 | };
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | export type QuestionRegistrationOptions<T extends PromptAnswers = PromptAnswers> = PromptQuestion<T> & {
|
27 | |
28 |
|
29 |
|
30 | exportOption?: boolean | Record<string, unknown>;
|
31 | };
|
32 |
|
33 |
|
34 |
|
35 |
|
36 | export type PromptQuestions<A extends PromptAnswers = PromptAnswers> = PromptQuestion<A> | Array<PromptQuestion<A>>;
|