index.d.ts 575 B

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