File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import IReplacer from './models/IReplacer';
1111import IResults from './models/IResults' ;
1212import IDefaultCaseConverter from './models/IDefaultCaseConverter' ;
1313import CheckUtility from './utilities/CheckUtility' ;
14- import IStringReplacerQuestion from './models/IStringReplacerQuestion ' ;
14+ import IReplacerSlotQuestion from './models/IReplacerSlotQuestion ' ;
1515
1616export default class GenerateTemplateFiles {
1717 /**
@@ -83,7 +83,7 @@ export default class GenerateTemplateFiles {
8383 * New question asking what should text should be used to replace the template text.
8484 */
8585 private async _getReplacerSlotValues ( selectedConfigItem : IConfigItem ) : Promise < IReplacer [ ] > {
86- const replacerQuestions : any [ ] = selectedConfigItem . stringReplacers . map ( ( item : string | IStringReplacerQuestion ) => {
86+ const replacerQuestions : any [ ] = selectedConfigItem . stringReplacers . map ( ( item : string | IReplacerSlotQuestion ) => {
8787 return {
8888 type : 'input' ,
8989 name : StringUtility . isString ( item ) ? item : item . slot ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import StringUtilityDefault from './utilities/StringUtility';
44import CaseConverterEnumDefault from './constants/CaseConverterEnum' ;
55import IResultsDefault from './models/IResults' ;
66import IReplacerDefault from './models/IReplacer' ;
7- import IStringReplacerQuestionDefault from './models/IStringReplacerQuestion ' ;
7+ import IReplacerSlotQuestionDefault from './models/IReplacerSlotQuestion ' ;
88
99export { StringUtilityDefault as StringUtility } ;
1010export { CaseConverterEnumDefault as CaseConverterEnum } ;
@@ -13,7 +13,7 @@ export {CaseConverterEnumDefault as CaseConverterEnum};
1313export type IResults = IResultsDefault ;
1414export type IConfigItem = IConfigItemDefault ;
1515export type IReplacer = IReplacerDefault ;
16- export type IStringReplacerQuestion = IStringReplacerQuestionDefault ;
16+ export type IReplacerSlotQuestion = IReplacerSlotQuestionDefault ;
1717
1818/**
1919 * Main method to create your template files. Accepts an array of `IConfigItem` items.
Original file line number Diff line number Diff line change 11import CaseConverterEnum from '../constants/CaseConverterEnum' ;
22import IResults from './IResults' ;
33import IReplacer from './IReplacer' ;
4- import IStringReplacerQuestion from './IStringReplacerQuestion ' ;
4+ import IReplacerSlotQuestion from './IReplacerSlotQuestion ' ;
55
66/**
77 * ```
@@ -54,7 +54,7 @@ export default interface IConfigItem {
5454 * stringReplacers: ['__store__', '__model__'],
5555 * ```
5656 */
57- stringReplacers : ( string | IStringReplacerQuestion ) [ ] ;
57+ stringReplacers : ( string | IReplacerSlotQuestion ) [ ] ;
5858 /**
5959 * ```
6060 * dynamicReplacers: [{slot:'__description__', slotValue: config.description}],
Original file line number Diff line number Diff line change 1- export default interface IStringReplacerQuestion {
1+ export default interface IReplacerSlotQuestion {
22 readonly question : string ;
33 readonly slot : string ;
44}
You can’t perform that action at this time.
0 commit comments