|
1 | 1 | // tslint:disable: max-classes-per-file |
2 | 2 | import { Answers, ChoiceType } from 'inquirer'; |
3 | | -import { InquirerQuestionType } from './BaseGenerator'; |
4 | 3 | import { IStepQuestion } from './IStepQuestion'; |
5 | 4 |
|
6 | 5 | export class Question<T> implements IStepQuestion<T> { |
@@ -50,35 +49,3 @@ export class Question<T> implements IStepQuestion<T> { |
50 | 49 |
|
51 | 50 | } |
52 | 51 | } |
53 | | - |
54 | | -export class OptionalQuestion<T> extends Question<T> { |
55 | | - constructor(name: string, props: Partial<Question<T>>) { |
56 | | - super(name, props); |
57 | | - this.isRequired = false; |
58 | | - } |
59 | | -} |
60 | | - |
61 | | -export class StoreQuestion<T> extends Question<T> { |
62 | | - constructor(name: string, props: Partial<Question<T>>) { |
63 | | - super(name, props); |
64 | | - this.store = true; |
65 | | - } |
66 | | -} |
67 | | - |
68 | | -export class InputQuestion<T> extends Question<T> { |
69 | | - constructor(name: string, message: string, store: boolean = true) { |
70 | | - super(name, undefined); |
71 | | - this.store = store; |
72 | | - this.type = InquirerQuestionType.input; |
73 | | - this.message = message; |
74 | | - } |
75 | | -} |
76 | | - |
77 | | -export class ConfirmQuestion<T> extends Question<T> { |
78 | | - constructor(name: string, message: string, store: boolean = true) { |
79 | | - super(name, undefined); |
80 | | - this.store = store; |
81 | | - this.type = InquirerQuestionType.confirm; |
82 | | - this.message = message; |
83 | | - } |
84 | | -} |
0 commit comments