import * as generator from 'yeoman-generator' ; import { Log } from './logger' ; import { Answers } from './types' ; export class ForceGeneratorAdapter { public log = new Log ( ) ; constructor ( ) { } public prompt ( opt , cb ) { const promptPromise = new Promise < Answers > ( resolve => { const answers = { } ; answers [ 0 ] = '' ; resolve ( answers ) ; } ) ; promptPromise . then ( cb || undefined ) . catch ( ( ) => { throw new Error ( 'Error resolving conflicting files' ) ; } ) ; return promptPromise ; } }