index.d.ts 588 B

1234567891011121314151617
  1. import { IFileOptions } from 'external-editor';
  2. import { type Theme } from '@inquirer/core';
  3. import type { PartialDeep } from '@inquirer/type';
  4. type EditorTheme = {
  5. validationFailureMode: 'keep' | 'clear';
  6. };
  7. type EditorConfig = {
  8. message: string;
  9. default?: string;
  10. postfix?: string;
  11. waitForUseInput?: boolean;
  12. validate?: (value: string) => boolean | string | Promise<string | boolean>;
  13. file?: IFileOptions;
  14. theme?: PartialDeep<Theme<EditorTheme>>;
  15. };
  16. declare const _default: import("@inquirer/type").Prompt<string, EditorConfig>;
  17. export default _default;