cli-legend
Version:
"A fun command-line rogurelike dungeon game"
18 lines (17 loc) • 592 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;
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;