@@ -11,7 +11,7 @@ import { Project } from './project/Project';
1111import { ProjectInfo } from './project/ProjectInfo' ;
1212import { ProjectPathAnalyser } from './project/ProjectPathAnalyser' ;
1313import { Question } from './questions/Question' ;
14- import { StringProperty , GeneratorOptions , MethodsToRegister } from './Types' ;
14+ import { GeneratorOptions , MethodsToRegister , IProperty } from './Types' ;
1515
1616export abstract class BaseGenerator < TStep extends string > extends generator {
1717
@@ -64,7 +64,7 @@ export abstract class BaseGenerator<TStep extends string> extends generator {
6464 }
6565
6666 setRootPath ( ) : void {
67- const opt = < StringProperty > this . options ;
67+ const opt = < IProperty > this . options ;
6868
6969 // We're in the wrong folder, try to set root
7070 if ( opt . rootPath && this . destinationPath ( ) !== opt . rootPath ) {
@@ -137,7 +137,7 @@ export abstract class BaseGenerator<TStep extends string> extends generator {
137137 }
138138
139139 getDefaultProjectName ( ) : string {
140- const opt = < StringProperty > this . options ;
140+ const opt = < IProperty > this . options ;
141141
142142 if ( opt . projectName ) {
143143 return _ . kebabCase ( opt . projectName ) ;
@@ -162,10 +162,10 @@ export abstract class BaseGenerator<TStep extends string> extends generator {
162162 . keys ( propertyDescriptor )
163163 . map ( x => < TStep > x ) ;
164164
165- const opt = < StringProperty > this . options ;
165+ const opt = < IProperty > this . options ;
166166 keys . forEach ( key => {
167167 if ( opt [ key ] !== undefined ) {
168- ( < StringProperty > this . answers ) [ key ] = opt [ key ] ;
168+ this . answers [ key ] = opt [ key ] ;
169169 }
170170 } ) ;
171171 }
0 commit comments