export const generateInput = ( name , message ) => { return ( defaultAnswer ) : any => ( { type : 'input' , name , message , default : defaultAnswer , } ) ; } ; export const generateSelect = ( name ) : ( ( message : string ) => ( choices : string [ ] ) => any ) => { return ( message ) => { return ( choices ) => ( { type : 'list' , name , message , choices , } ) ; } ; } ;