prompt.d.ts 589 B

123456789101112
  1. import { PromptOptions, PromptSettings } from './prompt.interface';
  2. import { TaskWrapper } from '../lib/task-wrapper';
  3. /**
  4. * Create a new prompt with Enquirer externally.
  5. * This extends enquirer so you dont have to give a name to single prompts and such so it is also
  6. * useful to use externally.
  7. * @param this
  8. * @param options
  9. * @param settings
  10. */
  11. export declare function createPrompt(this: any, options: PromptOptions | PromptOptions<true>[], settings?: PromptSettings): Promise<any>;
  12. export declare function destroyPrompt(this: TaskWrapper<any, any>, throwError?: boolean): void;