File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -24,4 +24,11 @@ export interface Ioptions {
2424
2525export interface IFoldernameAnswers {
2626 folderName :string
27+ }
28+
29+ export interface IFolderQuestions {
30+ type : string ;
31+ name : string ;
32+ message : string ;
33+ default ?:string | null
2734}
Original file line number Diff line number Diff line change 11import inquirer from 'inquirer' ;
22import chalk from 'chalk' ;
33import fs from 'fs' ;
4+ import { IFolderQuestions , Ioptions } from '../interfaces' ;
45
5- export const folderNameMissingOptionPrompt = async ( options : any ) => {
6+ export const folderNameMissingOptionPrompt = async ( options : Ioptions ) => {
67 let defaultFolderName = 'nm-kit' ;
7- const folderQuestions : any [ ] = [ ] ;
8+ const folderQuestions : IFolderQuestions [ ] = [ ] ;
89
910 let questionPush = ( msgString : string , folder : string | null ) => {
1011 folderQuestions . push ( {
@@ -114,7 +115,7 @@ export const folderNameMissingOptionPrompt = async (options: any) => {
114115 } ) ;
115116
116117 if ( matchFolderNameArg ) {
117- options . folderName = incrementFolderName ( ) ;
118+ options . folderName = incrementFolderName ( ) as unknown as string ;
118119 }
119120 }
120121
You can’t perform that action at this time.
0 commit comments