You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
609 B
TypeScript
19 lines
609 B
TypeScript
import { type Theme } from '@inquirer/core';
|
|
import type { PartialDeep } from '@inquirer/type';
|
|
type InputTheme = {
|
|
validationFailureMode: 'keep' | 'clear';
|
|
};
|
|
type InputConfig = {
|
|
message: string;
|
|
default?: string;
|
|
prefill?: 'tab' | 'editable';
|
|
required?: boolean;
|
|
transformer?: (value: string, { isFinal }: {
|
|
isFinal: boolean;
|
|
}) => string;
|
|
validate?: (value: string) => boolean | string | Promise<string | boolean>;
|
|
theme?: PartialDeep<Theme<InputTheme>>;
|
|
};
|
|
declare const _default: import("@inquirer/type").Prompt<string, InputConfig>;
|
|
export default _default;
|