index.js
function Prompt() {
  BasePrompt.apply(this, arguments);
  if (typeof this.question.source !== 'function') {
    throw new TypeError('expected source to be defined');
  }

  this.currentChoices = [];
  this.firstRender = true;
  this.selected = 0;

  // Make sure no default is set (so it won't be printed)
  this.question.default = undefined;
  this.paginator = new Paginator();
}
function Prompt() {
  BasePrompt.apply(this, arguments);
  if (typeof this.question.source !== 'function') {
    throw new TypeError('expected source to be defined');
  }

  this.currentChoices = [];
  this.firstRender = true;
  this.selected = 0;

  // Make sure no default is set (so it won't be printed)
  this.question.default = undefined;
  this.paginator = new Paginator();
}
function Prompt ( ) { BasePrompt . apply ( this , arguments ) ; if ( typeof this . question . source !== 'function' ) { throw new TypeError ( 'expected source to be defined' ) ; } this . currentChoices = [ ] ; this . firstRender = true ; this . selected = 0 ; // Make sure no default is set (so it won't be printed) this . question . default = undefined ; this . paginator = new Paginator ( ) ; }
Create a new autocomplete `Prompt`
Create a new autocomplete Prompt